05.12.2017, 07:23
Quote:
Hello,
When a cheater attempts to make a respawn for vehicles (falsely call callback OnVehicleDeath), we can catch a cheater but can not prevent a respawn. I think that this is a global problem at the moment and we can not do anything about it. I suggest adding for OnVehicleDeath the ability to prevent respawn if the value 0 is returned. Code:
public OnVehicleDeath(vehicleid, killerid) { new Float:health; GetVehicleHealth(vehicleid, health); if(health >= 250.0) { return 0; // we prevent respawn } return 1; } |