Make Anti-DDoS
#9

Quote:
Originally Posted by NeroX98
Посмотреть сообщение
So guys is this Anti Fake-Kill system good ?
pawn Код:
new antifakekill[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
    antifakekill[playerid] ++;
    SetTimerEx("antifakekill2", 1000,false,"i",playerid);
return 1;
}
forward antifakekill2(playerid);
public antifakekill2(playerid)
{
    antifakekill[playerid] --;
    if(antifakekill[playerid] > 3)
    {
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"* %s was banned reason (Fake kill)",pName);
    SendClientMessageToAll(0xFF0000FF,string);
    BanEx(playerid, "Fake kill");
    }
    return 1;
}
Credits: AldoT

Will it work because my server is mysql based and if im putting this i must directly put it and if its buggy maybe it will ban all players... so is this system good ?
then add it and test with someone.
Reply


Messages In This Thread
Anti Fake-Kill - by NeroX98 - 20.10.2013, 20:51
Re: Make Anti-DDoS - by ReV. - 20.10.2013, 21:03
Re: Make Anti-DDoS - by NeroX98 - 20.10.2013, 21:09
Re: Make Anti-DDoS - by martin3644 - 20.10.2013, 22:40
Re: Make Anti-DDoS - by daniscape - 21.10.2013, 08:03
Re: Make Anti-DDoS - by iZN - 21.10.2013, 08:21
AW: Make Anti-DDoS - by BigETI - 21.10.2013, 08:25
Re: Make Anti-DDoS - by NeroX98 - 21.10.2013, 09:07
Re: Make Anti-DDoS - by Astralis - 21.10.2013, 09:26
Re: Make Anti-DDoS - by NeroX98 - 21.10.2013, 09:34

Forum Jump:


Users browsing this thread: 2 Guest(s)