23.03.2015, 15:48
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;
}