Solution for stop Fake Kill on my server ?
#1

Help me how to stop fake killing in my server.
Reply
#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
#3

Maybe this look like this ?

pawn Код:
if(gettime() - GetPVarInt(playerid,"PlayerLastDeath") < 1)
    {
        Kick(playerid);
    }
    SetPVarInt(playerid,"PlayerLastDeath",gettime());
Reply
#4

Quote:
Originally Posted by VenomMancer
Посмотреть сообщение
Maybe this look like this ?

pawn Код:
if(gettime() - GetPVarInt(playerid,"PlayerLastDeath") < 1)
    {
        Kick(playerid);
    }
    SetPVarInt(playerid,"PlayerLastDeath",gettime());
I'd say to use fuckcleo.inc which has got the protection and works great and easy coding.
Reply
#5

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
I'd say to use fuckcleo.inc which has got the protection and works great and easy coding.
Link download for FuckCleo.inc ?
Reply
#6

Original thread was deleted to download fuckcleo.inc
Reply
#7

OMG -_-
So ?
Reply
#8

May be this: https://sampforum.blast.hk/showthread.php?tid=537405
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)