Having Problems.. (Fake Kills) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Having Problems.. (Fake Kills) (
/showthread.php?tid=557330)
Having Problems.. (Fake Kills) -
danish007 - 13.01.2015
pawn Код:
Hello, in my server. there are too much hackers and they Give Fake Kills. to everyone. also
can anyone tell me how to fix it?
Re: Having Problems.. (Fake Kills) -
ZaBraNjeNi - 13.01.2015
Use Anti-Cheat.
Re : Having Problems.. (Fake Kills) -
Chipardeur - 13.01.2015
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(gettime() - GetPVarInt(playerid,"PlayerLastDeath") < 1) Kick(playerid);
SetPVarInt(playerid,"PlayerLastDeath",gettime());
return 1;
}
(from
this topic, really easy to find one on the web, lol..)
Re: Having Problems.. (Fake Kills) -
M4D - 13.01.2015
A tip:
Make a variable fo example like this:
PlayerDamaged[MAX_PLAYERS][MAX_PLAYERS];
In OnPlayerTakeDamage :
PlayerDamaged[playerid][issuerid] = 1;
That mean issuerid gave damage to playerid
And in OnPlayerDeath callback check if killerid never give damage to playerid > playerid using fake kill
OnPlayerDeath:
if(PlayerDamaged[playerid][killerid] != 1) Kick(playerid);
It isn't 100% accurate but better of checking TickCount
Maybe cheater use fake kill slowly and 1 per 10 sec
Re: Having Problems.. (Fake Kills) -
Banana_Ghost - 14.01.2015
-removed-