13.02.2019, 13:16
If you use a CMD-Processor pack it in the Callback "OnPlayerCommandReceived" otherwise OnPlayerCommandText:
PHP код:
if(GetPlayerWantedLevel(playerid) > 0 && !GetPlayerInterior(playerid) && !GetPlayerVirtualWorld(playerid)) return SendClientMessage(playerid,-1,"You cannot use command while you have wanted level"),0;
if(GetPlayerWantedLevel(playerid) > 0 && GetPlayerInterior(playerid) > 0 && GetPlayerVirtualWorld(playerid) > 0) return SendClientMessage(playerid,-1,"you cannot use this command on this place"),0;