Having Problems.. (Fake Kills)
#1

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?
Reply
#2

Use Anti-Cheat.
Reply
#3

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..)
Reply
#4

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
Reply
#5

-removed-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)