HELP TO DISABLE COMMANDS IN DIFFERENT WAYS.
#2

If you use a CMD-Processor pack it in the Callback "OnPlayerCommandReceived" otherwise OnPlayerCommandText:

PHP код:
if(GetPlayerWantedLevel(playerid) > && !GetPlayerInterior(playerid) && !GetPlayerVirtualWorld(playerid)) return SendClientMessage(playerid,-1,"You cannot use command while you have wanted level"),0;
if(
GetPlayerWantedLevel(playerid) > && GetPlayerInterior(playerid) > && GetPlayerVirtualWorld(playerid) > 0) return SendClientMessage(playerid,-1,"you cannot use this command on this place"),0
Reply


Messages In This Thread
HELP TO DISABLE COMMANDS IN DIFFERENT WAYS. - by Salvador75 - 13.02.2019, 13:05
Re: HELP TO DISABLE COMMANDS IN DIFFERENT WAYS. - by Kaliber - 13.02.2019, 13:16
Re: HELP TO DISABLE COMMANDS IN DIFFERENT WAYS. - by Salvador75 - 14.02.2019, 00:04
Re: HELP TO DISABLE COMMANDS IN DIFFERENT WAYS. - by Kaliber - 14.02.2019, 07:31

Forum Jump:


Users browsing this thread: 1 Guest(s)