[Pomoc]Donator?

Započeo Impulseâ„¢, Jul 16, 2011, 00:10:07 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cyber RP
Detaljan opis problema:kako da stavim da /togooc /tognews /togwhisper mogu samo koristiti donatori razlicitih levela
npr: /togooc lvl 1 /tognews lvl 2 /togwhisper lvl 3
Dio skripte:
if(strcmp(cmd, "/togooc", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (!gOoc[playerid])
{
gOoc[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "   OOC chat je iskljucen od strane Admina !");
}
else if (gOoc[playerid])
{
gOoc[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "   OOC chat je ukljucen od strane Admina !");
}
}
return 1;
}


if(strcmp(cmd, "/tognews", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (!gNews[playerid])
{
gNews[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "   News chat channel iskljucen !");
}
else if (gNews[playerid])
{
gNews[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "   News chat ukljucen !");
}
}
return 1;
}


if(strcmp(cmd, "/togwhisper", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][twixDonatorRank] > 0 || PlayerInfo[playerid][Admin] > 1)
        {
if (!HidePM[playerid])
{
HidePM[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat iskljucen !");
}
else if (HidePM[playerid])
{
HidePM[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat ukljucen !");
}
}
else
{
    SendClientMessage(playerid, SIVA, "Morate biti Admin lvl:1 !");
            return 1;
}
}
return 1;
}


Kako su ti definisani donatori ?


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info


Vidis ovaj redak?

if(PlayerInfo[playerid][twixDonatorRank] > 0 || PlayerInfo[playerid][Admin] > 1)

tu di pise [twixDonatorRank] >0 ↕↕ .. to ti znaci ako je donatorski rank veci od 0 stavis npr. da ako je donator rank veci od 3 onda ide ovako

if(PlayerInfo[playerid][twixDonatorRank] > 3 || PlayerInfo[playerid][Admin] > 1)

Razumijes?

CMD:togooc(playerid,params[])
{
if(PlayerInfo[playerid][twixDonatorRank] > 1 || PlayerInfo[playerid][Admin] > 1) return SCM(playerid, SIVA, "Nisi admin ili donator!");
{
if (!gOoc[playerid])
{
gOoc[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "   OOC ugasen !");
}
else if (gOoc[playerid])
{
gOoc[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "   OOC upaljen !");
}
}return 1;
}





CMD:tognews(playerid,params[])
{
if(PlayerInfo[playerid][twixDonatorRank] > 2 || PlayerInfo[playerid][Admin] > 1) return SCM(playerid, SIVA, "Nisi admin ili donator!");
{
if (!gNews[playerid])
{
gNews[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "   News ugasen !");
}
else if (gNews[playerid])
{
gNews[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "   News upaljen !");
}
}
return 1;
}





CMD:togfam(playerid,params[])
{
if(PlayerInfo[playerid][twixDonatorRank] > 3 || PlayerInfo[playerid][Admin] > 1) return SCM(playerid, SIVA, "   Nisi admin ili donator!");
{
if (!gFam[playerid])
{
gFam[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "Family chat ugasen !");
}
else if (gFam[playerid])
{
gFam[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "Family chat upaljen !");
}
}
return 1;
}





CMD:togwhisper(playerid,params[])
{
if(PlayerInfo[playerid][twixDonatorRank] > 3 || PlayerInfo[playerid][Admin] > 1) return SCM(playerid, SIVA, "Nisi admin ili donator!");
{
if (!HidePM[playerid])
{
HidePM[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat ugasen !");
}
else if (HidePM[playerid])
{
HidePM[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat upaljen !");
}
}
return 1;
}





CMD:togphone(playerid,params[])
{
if(PlayerInfo[playerid][twixDonatorRank] > 3 || PlayerInfo[playerid][Admin] > 1) return SCM(playerid, SIVA, "Nisi admin ili donator!");
{
if (!PhoneOnline[playerid])
{
PhoneOnline[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "   Tvoj telefon je ugasen!");
}
else if (PhoneOnline[playerid])
{
PhoneOnline[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "   Tvoj telefon je upaljen!");
}
}
return 1;
}