09.12.2015, 17:37
Detect "Hacker" word in chat
This system will just detect if player has typed "hacker", then it will block his message and tell him to use /report to report hackers.
This system will just detect if player has typed "hacker", then it will block his message and tell him to use /report to report hackers.
Код:
public OnPlayerText(playerid, text[]) { if(strfind(text, "hacker", true) != -1) { SendClientMessage(playerid, -1, "Use /report to report hackers!"); return 0; } return 1; }