28.11.2014, 12:01
Hello, I'm trying to make an Forbidden Words System. I have this:
It's workin' fine, but, there's a way, if he say the word from strfind don't send it? And says too all players only text I put?
pawn Код:
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, name, sizeof(name));
if(strfind("gay", "gay", true) != -1)
{
format(string, sizeof(string), "{FF0000}%s {15FF00}(%d) {FFFF00}: {FFCC33}Adaugati la favorite server-ul!", name, playerid);
SendClientMessageToAll(-1, string);
}
return 1;
}