06.03.2015, 15:28
if u want it to use this cmd for simple player then use this
if u want to use for admin. remember u must set your level to 1337 to use this CMD !
Код:
if(strcmp(cmd, "/jetpack", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!"); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); return 1; } return 1; }
Код:
if(strcmp(cmd, "/jetpack", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1337) { SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!"); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't use this command."); return 1; } } return 1; }