22.04.2012, 15:52
You shouldn't put the check inside the loop, it will be called x times, it only needs to be called once.
Also, please use [pawn] tags instead of php. And learn to indent.
pawn Код:
if(GetPlayerState(playerid) == 1) // onfoot
{
for(new i=0; i<sizeof(gBadWords); i++)
{
if(strfind(text, gBadWords[i], true) != -1)
{
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0, 0);
return 0;
}
}
}