Warning for bad word - spam problem [REP+]
#2

You could do this:
pawn Код:
new bool:Sweared;
for(new i; i < sizeof(ZabranjeneRijeci); i++)
{
    if(strfind(text, ZabranjeneRijeci[i], true) != -1)
    {
        Sweared = true;
    }
}
if(Sweared)
{
    new zrstring[128];
format(zrstring, sizeof(zrstring), "[CHAT-WARNING]: "COL_GREY"(%d)%s: %s", playerid,GetName(playerid),text);
    SendMessageToStaff(COLOR_PURPLE, zrstring);
    Sweared = false;
}
Reply


Messages In This Thread
Warning for bad word - spam problem [REP+] - by TiXz0r - 23.03.2015, 15:43
Re: Warning for bad word - spam problem [REP+] - by CalvinC - 23.03.2015, 15:48
Re: Warning for bad word - spam problem [REP+] - by TiXz0r - 23.03.2015, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)