10.03.2012, 08:42
pawn Code:
// Anti FakeKill Flood by RuNix
#include <a_samp>
new XDeaths[MAX_PLAYERS];
new LastDeath[MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n----------------------------------------");
print(" Anti FakeKill Flood FilterScript by RuNix");
print("----------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
XDeaths[playerid] = 0;
LastDeath[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(XDeaths[playerid] == 0)
{
LastDeath[playerid] = gettime();
}
XDeaths[playerid]++;
if(XDeaths[playerid] == 5)
{
if((gettime() - LastDeath[playerid]) <= 5)
{
SendClientMessage(playerid,0,"{FFBF00}Hey n0b, flood your mother!");
BanEx(playerid,"Banned for FakeKill Flood");
}else
if((gettime() - LastDeath[playerid]) > 5)
{
XDeaths[playerid]=0;
}
}
return 1;
}
Romania Super Stunt and works perfectly.This script is old of 0.3c and i don't used OnPlayerTakeDamage...

