Anti Fake Kill - Please Help Me!
#1

Hy!

Would somebody be able to help to stop the fake kill?

Sorry my bad English


Reply
#2

GetPlayerHealth of playerid OnPlayerDeath? If its more than 0, ban?
Reply
#3

Not work ... I use /kill and I have ban:/
Reply
#4

/Kill will kill the player though..
Reply
#5

He can sniper from miles away.

What happens is, player stays alive, pretends someone kills him, but he doesnt die, so if this is the case, ban.
Reply
#6

Thank you for everyone Now it's works!
Reply
#7

You could always check if the "killer" is actually carrying the weapon they supposedly killed with.

pawn Code:
//OnPlayerDeath
if(GetPlayerWeapon(killerid) != reason) //if the weapon "killerid" has is not the weapon used to kill "playerid"
{
    //"playerid" used a fake kill
}
Reply
#8

Well distance wouldn't be good if the cheater got close, but it would be good for when they're not, there is a max distance the sniper rifle can do damage. just experiement with the distance using pointtopoint(x,y,x2,y2); to get the exact measurement. Checking if the killer actually owns the weapon is a good way, but also make sure to check if the player has ammo for it (weapon hangs around even if player has 0 ammo). Also make sure to excuse the killer if the player uses /kill /suicide. Also make sure when doing weapon check to clear collision as a weapon (case player jumps off a building)
Reply
#9

Or do what I said.
Reply
#10

Lazarus thank you!
It's works perfect!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)