23.05.2010, 10:39
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
So how can i make this mute the player if he says fuck you?
Reply if ya can help thanks.
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; }
Reply if ya can help thanks.