OnPlayerText help
#4

Not without using OnPlayerText You would want to do something like this.
pawn Код:
COMMAND:reg(playerid, params[])
{
    SetPVarInt(playerid, "registering", 1);//when player is registered delete this var
    //...
    return 1;
}

public OnPlayerText(playerid, text[])
{
    if(GetPVarInt(playerid, "registering") == 1)
    {
        if(text[0] == 'f' && text[1] == '\0')
        {
            // 'f' was entered when player was registering
           
            //do stuff
            return 0;//return 0 so text isn't sent
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText help - by Jason_Blink - 12.03.2011, 20:23
Re: OnPlayerText help - by alpha500delta - 12.03.2011, 21:28
Re: OnPlayerText help - by Jason_Blink - 13.03.2011, 00:24
Re: OnPlayerText help - by iggy1 - 13.03.2011, 00:33
Re: OnPlayerText help - by Jason_Blink - 14.03.2011, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)