07.07.2013, 18:46
Quote:
|
I think OnPlayerTakeDamage is called even if the player is toggling his health so that might be a way to detect it.
Another option is to set all players in the same team with the function SetPlayerTeam so they can't hurt each other directly, and instead use OnPlayerGiveDamage to damage players by script. This would also lead to players not needing to lag shoot and being able to hit other players by shooting directly at them. However this doesn't work well with vehicles because OnPlayerGiveDamage is not called when the attacker is driving a vehicle (the only exception I know is drive by shooting), and apart from that certain cheats enable players to keep their health even if SetPlayerHealth is used on them. Regarding this, an option could be to use a server side health system, but in this case you need to control whenever a player uses a vending machine or buys food in stores like Burger Shot or Cluckin' Bell, or buys armour in Ammunation. |
No solution for this cheat?
https://sampforum.blast.hk/showthread.php?tid=442886


