OnPlayerText [HELP]
#1

Hey guy's erm i was working on a script with OnPlayerText & if the player swears for this example its "fuck you"


heres my code



Код:
public OnPlayerText(playerid, text[])
{
  if (strfind(text, "fuck you") != -1)
  {
   new string[80], name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   format(string, sizeof(string), "%s! Has been muted for 5 seconds for flaming.", name);
   SendClientMessageToAll(0xFFFF00FF,string);
    

  }
	return 1;
}
So how can i make this mute the player if he says fuck you?

Reply if ya can help thanks.
Reply


Messages In This Thread
OnPlayerText [HELP] - by Jay. - 23.05.2010, 10:39
Re: OnPlayerText [HELP] - by RyDeR` - 23.05.2010, 10:41
Re: OnPlayerText [HELP] - by MenaceX^ - 23.05.2010, 10:41
Re: OnPlayerText [HELP] - by Jay. - 23.05.2010, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)