All pastes #615543 Raw Edit

Ukrywacz reklamiarzy by Luby

public cpp v1 · immutable
#615543 ·published 2007-07-12 05:37 UTC
rendered paste body
#include <a_samp>#define ILE_KICK 3new Count[200]={0,...};public OnFilterScriptInit(){ print("Anty IP by Luby - Uruchomiono"); return 1;}public OnPlayerConnect(playerid){ Count[playerid]=0; return 1;}public OnPlayerText(playerid, text[]){ new Adress1 = strfind(text, ".", false, 0); new Adress2 = strfind(text, ".", false, 1); new Adress3 = strfind(text, ".", false, 2); if(Adress1!=-1 && Adress2!=-1 && Adress3!=-1){  if(Adress3 - Adress2 <= 3)if(Adress2 - Adress1 <= 3){   Count[playerid]++;   if(Count[playerid] >= ILE_KICK){    new str[256], Name[64];    GetPlayerName(playerid, Name, 64);    format(str,256,"*** Gracz %s został wyrzucony z Servera. Powód : Reklamowanie IP", Name);    SendClientMessageToAll(0xFF0000FF, str);    Kick(playerid);   }   return 0;  } } return 1;}