13.03.2011, 00:33
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;
}