1 problem
#1

in my server i found some hackers they hack score and also hack other player,s score with fake kill and its very anoyed me

suggestion plz :>
Reply
#2

test this. anti fake kill
Код:
new bool:AntiFakeKill[MAX_PLAYERS];

public OnPlayerSpawn(playerid){
	AntiFakeKill[playerid] = false;
	return true;
}

public OnPlayerDeath(playerid, killerid, reason){
	if(AntiFakeKill[playerid] == true) return Kick(playerid);
	AntiFakeKill[playerid] = true;
	return true;
}

public OnPlayerDisconnect(playerid, reason){
	AntiFakeKill[playerid] = false;
	return true;
}
Reply
#3

Technically, score cannot be hacked as it is server-side. It's the bonus your server gives for each kill.

What DimaShift posted is not used often anymore, most fake kill cheats "respawn" the player at the same position he was so the best way is to store the player who gave damage to the player (OnPlayerTakeDamage) and the tick (gettime) so you can then check in OnPlayerDeath if the killer was not the last player gave damage and take action. Afterwards, reset your variables.

I used to auto-ban with some circumstances (killerid and playerid being the same, or multiple deaths in a second). For the rest, just stop your code execution to ignore them.
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Technically, score cannot be hacked as it is server-side. It's the bonus your server gives for each kill.

What DimaShift posted is not used often anymore, most fake kill cheats "respawn" the player at the same position he was so the best way is to store the player who gave damage to the player (OnPlayerTakeDamage) and the tick (gettime) so you can then check in OnPlayerDeath if the killer was not the last player gave damage and take action. Afterwards, reset your variables.

I used to auto-ban with some circumstances (killerid and playerid being the same, or multiple deaths in a second). For the rest, just stop your code execution to ignore them.
OnPlayerTakeDamage can be disabled by cheat (NOP)!
Reply
#5

Quote:
Originally Posted by DimaShift
Посмотреть сообщение
OnPlayerTakeDamage can be disabled by cheat (NOP)!
Which means the cheater never took damage so it still works - I just tested it right now. I also never suggested to use one method over the other (before you edit your post), I have 4 different methods so I can effectively catch all of those different versions.
Reply
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Which means the cheater never took damage so it still works - I just tested it right now. I also never suggested to use one method over the other (before you edit your post), I have 4 different methods so I can effectively catch all of those different versions.
Put here if you have something good.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)