OnPlayerCommandReceived
#2

Just put that in your /pm and /a command in the top.
But using return 0 will make the command not succeed, giving the "Unknown command" message.
You can just do it like this to make it shorter, and it won't display Unknown command.
pawn Код:
if(Info[playerid][Jailed]==1) return SendClientMessage(playerid,COLOR_RED,"ERROR, You are in jail.");
Reply


Messages In This Thread
OnPlayerCommandReceived - by ajwar - 09.03.2015, 11:10
Re: OnPlayerCommandReceived - by CalvinC - 09.03.2015, 11:12
AW: OnPlayerCommandReceived - by Kaliber - 09.03.2015, 11:15
Re: OnPlayerCommandReceived - by ajwar - 09.03.2015, 11:17
Re: AW: OnPlayerCommandReceived - by ajwar - 09.03.2015, 11:20
AW: Re: AW: OnPlayerCommandReceived - by Kaliber - 09.03.2015, 11:22
Re: AW: OnPlayerCommandReceived - by Gammix - 09.03.2015, 11:50
AW: Re: AW: OnPlayerCommandReceived - by Kaliber - 09.03.2015, 12:35
Re: OnPlayerCommandReceived - by ReshiramZekrom - 09.03.2015, 13:46
AW: Re: OnPlayerCommandReceived - by Kaliber - 09.03.2015, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)