30.08.2009, 22:53
In OnPlayerText add:
Attention: Not Tested!
pawn Код:
new ads;
for(new a, l = strlen(text); a < l; a++)
{
if (text[a] == ':' && d == 3) return ads++;
if(ads == 3) return SendClientMessage(playerid,COLOR_RED,"Not Advertising!");
if (text[a] == '.' && d < 3) d++;
if(ads == 3) return Ban(playerid);
}
return 1;
}