Quote:
Originally Posted by Sascha
so.. just wrote this up..
pawn Код:
public OnPlayerText(playerid, text[]) { if(strfind(text, "{cc00cc}", true) != -1) { new p = strfind(text, "{cc00cc}", true); strdel(text, p, p+8); Ban(playerid); } return 1; }
|
AFAIK you can't detect if a player has input that string like this, since it is a embedded colour code in chat which is automatically ignored by SA-MP. Thus you can't find the string in the text[] parameter.
The only way to solve this problem is to find the cause of the bug and fix it, just like ****** said.