OnPlayerCommandReceived
#3

Or make it like this:

Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    new cmd[32],pos=strfind(cmdtext," ");
    strmid(cmd,cmdtext,0,(pos == -1)?strlen(cmdtext):pos,32);
    if(Info[playerid][Jailed]==1)
    {
        if(!strcmp(cmd,"/pm") || !strcmp(cmd,"/a")) return 1;
        SendClientMessage(playerid,COLOR_RED,"ERROR, You are in jail.");
        return 0;
    }
}
Greekz
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)