OnPlayerCommandReceived
#1

I wan't to let players using /pm [text], /a [text] cmds while they are in jail(Info[playerid][Jailed]==1). How can i do that?

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(Info[playerid][Jailed]==1)
    {

            SendClientMessage(playerid,COLOR_RED,"ERROR, You are in jail.");
            return 0;
     
    }
}
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)