27.12.2010, 13:45
(
Last edited by ZiGGi; 27/12/2010 at 04:14 PM.
)
Quote:
pawn Code:
|
Это должно помочь:
pawn Code:
for(new s = 0; s < num_words; s++)
{
new pos;
while((pos = strfind(text,Swears[s],true)) != -1)
{
for(new i = pos, j = pos + strlen(Swears[s]); i < j; i++)
{
text[i] = '*';
swear[playerid] = 1;
}
}
}
if(swear[playerid] == 1)
{
GetPlayerName(playerid, var0, 25);
format(var1, 256, "Ea?ieo %s aaoiiaoe?anee caaaiai ?ao ia 1 ieiooo ii i?e?eia: Iao(u).", var0);
SendClientMessageToAll(RED, var1);
SetTimerEx("UnMute",60000,0,"M",playerid);
return 0;
}