23.03.2015, 15:43
I dont know, how to fix spam.
When type bad word like: fuc*, send 1 msg for chat warning.
but when type two bad words like: fuc* gay, send two chat warnings to admins.
I want just one chat warning to admins.
Thanks.
When type bad word like: fuc*, send 1 msg for chat warning.
but when type two bad words like: fuc* gay, send two chat warnings to admins.
I want just one chat warning to admins.
Thanks.
Код:
for(new i; i < sizeof(ZabranjeneRijeci); i++) { if(strfind(text, ZabranjeneRijeci[i], true) != -1) { new zrstring[128]; format(zrstring, sizeof(zrstring), "[CHAT-WARNING]: "COL_GREY"(%d)%s: %s", playerid,GetName(playerid),text); SendMessageToStaff(COLOR_PURPLE, zrstring); } }