rendered paste body#include <a_samp>enum enum_cInfo{ aspWarn, Float:chatDelay, cCount, sCount}new oldText[128];new cInfo[200][enum_cInfo];forward TextDelay();public OnFilterScriptInit(){ print("\n--------------------------------------"); print(" Anti-Text Thingy Majogger by Pixels^"); print("--------------------------------------\n"); SetTimer("TextDelay",500,1); return 1;}public OnPlayerText(playerid, text[]){ if(strcmp(text, oldText, true) == 0) { if(cInfo[playerid][chatDelay] <= 2) { if(cInfo[playerid][cCount] > 2) { cInfo[playerid][cCount] = 0; KickEx(playerid,"* [Anti-TextThingyMajogger] %s was kicked for repeating himself more than 2 times."); return 1; } cInfo[playerid][cCount]++; } cInfo[playerid][chatDelay] = 0; return 1; } if(cInfo[playerid][chatDelay] <= 1) { if(cInfo[playerid][sCount] > 2) { cInfo[playerid][sCount] = 0; KickEx(playerid,"* [Anti-TextThingyMajogger] %s was kicked for spamming the server."); return 1; } cInfo[playerid][sCount]++; } cInfo[playerid][chatDelay] = 0; return 1;}public TextDelay() for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) cInfo[i][chatDelay]+=0.5;stock KickEx(playerid, reason[]){ new name[24]; GetPlayerName(playerid,name,24); strins(reason,name,strlen("* [Anti-TextThingyMajogger]"),strlen(name)); SendClientMessageToAll(0xFF0000AA,reason); return Kick(playerid);}