06.03.2015, 15:45
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);
}
else SendClientMessage(playerid,COLOR_GREY,"You can't use this command.");
return 1;
}
return 0;
}
https://sampwiki.blast.hk/wiki/IsPlayerAdmin
https://sampwiki.blast.hk/wiki/Control_Structures#Operators