onplayertext problem
#6

Quote:
Originally Posted by MenaceX^
pawn Код:
public OnPlayerText(playerid,text[])
{
  if(strfind(text,"fuck",true)!=-1)
  {
    new name[MAX_PLAYER_NAME],
       string[128];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    format(string,sizeof(string),"%s Is A Fool.",name);
    SendClientMessageToAll(COLOR_GREEN,string);
    return 0;
  }
  // if you want the chat to be avaiable (the regular one of sa-mp) return it with 1.
  return 0;
}
ok , it worked , but if i want to add another word?
Reply


Messages In This Thread
onplayertext problem - by Serediucr - 13.07.2009, 12:10
Re: onplayertext problem - by Djiango - 13.07.2009, 12:13
Re: onplayertext problem - by Serediucr - 13.07.2009, 12:18
Re: onplayertext problem - by Gergo1352 - 13.07.2009, 12:22
Re: onplayertext problem - by MenaceX^ - 13.07.2009, 12:22
Re: onplayertext problem - by Serediucr - 13.07.2009, 12:46
Re: onplayertext problem - by Gergo1352 - 13.07.2009, 13:11
Re: onplayertext problem - by Serediucr - 13.07.2009, 13:21
Re: onplayertext problem - by Gergo1352 - 13.07.2009, 13:24
Re: onplayertext problem - by c0der. - 13.07.2009, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)