Solution for stop Fake Kill on my server ?
#2

This should do it.

PHP код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
//Defines:
#undef MAX_PLAYERS
#define MAX_PLAYERS 200 //Change this
//-------------------
#define Rot 0xFF000000
#define Weiss 0xFFFFFFFF
//-------------------
#define HOMEPAGE "www.Your-Homepage.com"
#define ADMINNAME "Server"
//-------------------
#define Kickplayer //Comment out if players should be banned. (If not, players will only be kicked!)
//Variables:
new AntiFakekill[MAX_PLAYERS];
//new GodCar[MAX_PLAYERS];
//Forwards:
forward AntiFakekillTimer(playerid);
public 
OnFilterScriptInit()
{
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
AntiFakekill[playerid]++;
    
SetTimerEx("AntiFakekillTimer"1000,false,"i",playerid);
    
//SendDeathMessage(killerid,playerid,reason);
    
return 1;
}
public 
AntiFakekillTimer(playerid)
{
    
AntiFakekill[playerid]--;
    if(
AntiFakekill[playerid] > 2)
    {
        
BanEx(playerid,"Anti Fake Kill");
    }
    return 
1;

Reply


Messages In This Thread
Solution for stop Fake Kill on my server ? - by VenomMancer - 11.01.2015, 05:03
Re: Solution for stop Fake Kill on my server ? - by Aasim - 11.01.2015, 05:31
Re: Solution for stop Fake Kill on my server ? - by VenomMancer - 11.01.2015, 09:45
Re: Solution for stop Fake Kill on my server ? - by Ironboy - 11.01.2015, 10:33
Re: Solution for stop Fake Kill on my server ? - by VenomMancer - 13.01.2015, 10:59
Re: Solution for stop Fake Kill on my server ? - by www - 13.01.2015, 11:02
Re: Solution for stop Fake Kill on my server ? - by VenomMancer - 13.01.2015, 11:08
Re: Solution for stop Fake Kill on my server ? - by www - 13.01.2015, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)