
anti fake kill
By: a guest on
Jul 6th, 2012 | syntax:
None | size: 1.22 KB | hits: 10 | expires: Never
#include <a_samp>
#include <core>
#include <float>
new reklam[] = "[BILGI]Bu Server, [T]HeLLBoY un Anti Fake-Kill Sistemini Kullanmaktadir. Iletisim: muha-mmed97@hotmail.com";
new TTest[MAX_PLAYERS];
new GTest[MAX_PLAYERS];
new BanSebep[] = "FakeKill";
public OnFilterScriptInit()
{
SetTimer("sendmessage", 120000, true);
print(" Anti Fake-Kill - By .:: [T]HeLLBoY ::.");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
TTest[playerid] = 0;
GTest[playerid] = 0;
return 1;
}
forward sendmessage();
public sendmessage()
{
return SendClientMessageToAll(0xFFFF00AA, reklam);
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(!TTest[playerid])
{
GTest[playerid] = gettime();
}
TTest[playerid]++;
if(GTest[playerid] == 4)
{
if(gettime() - GTest[playerid] <= 4)
{
new pName[25];
new string[256];
GetPlayerName(playerid, pName, 25);
format(string, 256, "%s {FFBF00} Adli Oyuncu Sunucudan Banlandi.[Sebep:{001BE1} Fake Kill]", pName);
SendClientMessageToAll(0x33FF33AA, string);
BanEx(playerid, BanSebep);
}
else if(gettime() - GTest[playerid] > 5)
{
TTest[playerid] = 0;
}
}
return 1;
}