06.03.2015, 15:42
Guessing you want it to work with RCON admins too?
Also, why are you returning 1 after every function? There's no need to do that. You only need one return 1 and that's before the last bracket.
pawn Код:
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337 || IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!");
SetPlayerSpecialAction(playerid,2);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You can't use this command.");
return 1;
}
}
}