Stop commands
#10

Quote:
Originally Posted by AdHaM612
Посмотреть сообщение
Do as they both said, but the callback is "OnPlayerCommandText".
So it would be:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if(/*Put your jail variable here*/)
        {
             return 0;
        }
        if(strcmp, blah blah.....//strcmp command
        {
             return 1;
        }
        return 0;
}
shouldn't have to change command processors to do this. it's already been posted multiple times.
You don't need the zcmd callback OnPlayerRecievedCommand or whatever it is, you can put it in onPlayercommandText, just make sure its the first thing in the callback, all your strcmp commands must be below it see the example i edited.
Reply


Messages In This Thread
Stop commands - by dundolina - 23.11.2014, 09:46
AW: Stop commands - by Mellnik - 23.11.2014, 09:56
Re: Stop commands - by dundolina - 23.11.2014, 10:09
Re: Stop commands - by dundolina - 23.11.2014, 11:11
Re: AW: Stop commands - by OsteeN - 23.11.2014, 15:49
Re: AW: Stop commands - by AdHaM612 - 23.11.2014, 16:10
Re: AW: Stop commands - by OsteeN - 23.11.2014, 16:11
Re: Stop commands - by dundolina - 23.11.2014, 19:45
Re: Stop commands - by LeXuZ - 23.11.2014, 19:48
Re: AW: Stop commands - by PinkFloydLover - 25.11.2014, 02:34

Forum Jump:


Users browsing this thread: 3 Guest(s)