OnPlayerText
#4

pawn Код:
new pLastChat[MAX_PLAYERS][129];

public OnPlayerText(playerid, text[])
{
    if(!strcmp(text, pLastChat[playerid], true))
    {
        SendClientMessage(playerid, COLOR_RED, "Do not repeat yourself");
        format(pLastChat[playerid], 128, "%s", text);
        return 0; // Stop the chat from being sent
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText - by Crazyboobs - 05.06.2012, 21:50
Re: OnPlayerText - by Revo - 05.06.2012, 21:53
Re: OnPlayerText - by Crazyboobs - 05.06.2012, 21:58
Re: OnPlayerText - by MP2 - 05.06.2012, 23:10
Re: OnPlayerText - by Jefff - 05.06.2012, 23:12
Re: OnPlayerText - by Crazyboobs - 06.06.2012, 06:20
Re: OnPlayerText - by Crazyboobs - 06.06.2012, 16:46
Re: OnPlayerText - by MadeMan - 06.06.2012, 17:11
Re: OnPlayerText - by Crazyboobs - 06.06.2012, 20:16
Re: OnPlayerText - by skullmuncher1337 - 06.06.2012, 20:20

Forum Jump:


Users browsing this thread: 4 Guest(s)