OnPlayerText
#3

Quote:
Originally Posted by forgottenkings
Посмотреть сообщение
Here it is

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(!strcmp(text, "OMG", true))
    {
        SendPlayerMessageToAll(playerid, "Oh My God");
        return 0;
    }
    return 1;
}
This wont show which player had typed "OMG" And support if you don't have anti spam player may do "OMG" again and again and your full server chat is wrecked.

Just use SendClientMessage.
Reply


Messages In This Thread
OnPlayerText - by ChristianIvann09 - 03.04.2014, 05:06
Re: OnPlayerText - by forgottenkings - 03.04.2014, 05:30
Re: OnPlayerText - by Bingo - 03.04.2014, 06:45
Re: OnPlayerText - by LocMax - 03.04.2014, 07:21
Re: OnPlayerText - by forgottenkings - 03.04.2014, 07:36
Re: OnPlayerText - by Vince - 03.04.2014, 07:37
Re: OnPlayerText - by forgottenkings - 03.04.2014, 07:39

Forum Jump:


Users browsing this thread: 2 Guest(s)