OnPlayerText
#2

Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "fucker", true) != -1)
    {
	  SendClientMessage(playerid, 0xFF0000AA, "Forbidden Word.");
	  return 0;
    }
    if(strfind(text, "bitch", true) != -1)
    {
	  SendClientMessage(playerid, 0xFF0000AA, "Forbidden Word.");
	  return 0;
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText - by CH | FuDo - 03.02.2014, 14:13
AW: OnPlayerText - by ReD_HunTeR - 03.02.2014, 16:35
Re: OnPlayerText - by Lordzy - 03.02.2014, 17:08
Re: OnPlayerText - by CH | FuDo - 11.02.2014, 18:31
Re: OnPlayerText - by Blademaster680 - 11.02.2014, 19:55

Forum Jump:


Users browsing this thread: 2 Guest(s)