Solution for stop Fake Kill on my server ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Solution for stop Fake Kill on my server ? (
/showthread.php?tid=556635)
Solution for stop Fake Kill on my server ? -
VenomMancer - 11.01.2015
Help me how to stop fake killing in my server.
Re: Solution for stop Fake Kill on my server ? -
Aasim - 11.01.2015
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(playerid, killerid, reason)
{
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;
}
Re: Solution for stop Fake Kill on my server ? -
VenomMancer - 11.01.2015
Maybe this look like this ?
pawn Код:
if(gettime() - GetPVarInt(playerid,"PlayerLastDeath") < 1)
{
Kick(playerid);
}
SetPVarInt(playerid,"PlayerLastDeath",gettime());
Re: Solution for stop Fake Kill on my server ? -
Ironboy - 11.01.2015
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.
Re: Solution for stop Fake Kill on my server ? -
VenomMancer - 13.01.2015
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 ?
Re: Solution for stop Fake Kill on my server ? -
www - 13.01.2015
Original thread was deleted to download fuckcleo.inc
Re: Solution for stop Fake Kill on my server ? -
VenomMancer - 13.01.2015
OMG -_-
So ?
Re: Solution for stop Fake Kill on my server ? -
www - 13.01.2015
May be this:
https://sampforum.blast.hk/showthread.php?tid=537405