19.07.2009, 18:34
Hello!
Again I'm stuck with this.
I have a command:
How could I make if player is orgleader[playerid] == 1, command only works for him. I tested and no effect, but that message You are not a leader works if I am not the leader
EDIT: Already tried this:
Again I'm stuck with this.
I have a command:
pawn Код:
if (strcmp("/orgkick", cmdtext, true) == 0)
{
if(orgleader[playerid] == 0) return SendClientMessage(playerid, COLOR_ORED, "You are NOT an organization leader.");
}
else if(orgleader[playerid] == 1)
new text[256];
format(text,sizeof text,"%s",rest);
SendClientMessageToAll(COLOR_YELLOW,text);
print(text);
return 1;
}
EDIT: Already tried this:
pawn Код:
if (strcmp("/orgkick", cmdtext, true) == 0)
{
if(orgleader[playerid] == 0) return SendClientMessage(playerid, COLOR_ORED, "You are NOT an organization leader.");
new text[256];
format(text,sizeof text,"%s",rest);
SendClientMessageToAll(COLOR_YELLOW,text);
print(text);
return 1;
}