SA-MP Forums Archive
Anti Fake Kill? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti Fake Kill? (/showthread.php?tid=191804)



Anti Fake Kill? - PoWerZ - 20.11.2010

I've noticed in my server that some players make fake kill with cheats (help thier friends gain kills) , they just kill thierselves and it execute OnPlayerDeath public with the weapon of the killer.
There is any way to block it? (They do it close to their friends)


Re: Anti Fake Kill? - Mauzen - 20.11.2010

This has probably something to do with your OnPlayerDeath code. We cant say anything further without the code, post it here.


Re: Anti Fake Kill? - PoWerZ - 20.11.2010

public OnPlayerDeath(playerid,killerid,reason)
{
SendDeathMessage(killerid,playerid,reason);
Deaths[playerid] ++;
Kills[killerid] ++;
return 1;
}

That's not about the public, They just have fake kill cheat which kills them and blame others for death.


Re: Anti Fake Kill? - Mauzen - 20.11.2010

Hmm, warn/kick/ban them


Re: Anti Fake Kill? - PoWerZ - 20.11.2010

well, that's the solution when you have an admin,
The whole point of this is making Anti cheat which does the admin job and detects the cheater - kicks/bans him.


Re: Anti Fake Kill? - Vince - 20.11.2010

Pseudo code:

Code:
if distance between players > x
if weapon killerid != death reason
if health playerid != 0
You can check for those things.


Re: Anti Fake Kill? - PoWerZ - 20.11.2010

Quote:
Originally Posted by Vince
View Post
Pseudo code:

Code:
if distance between players > x
if weapon killerid != death reason
if health playerid != 0
You can check for those things.
Already checked those


Re: Anti Fake Kill? - Austin - 20.11.2010

I doubt you have somehow.