onvehiclerespray problem
#1

Hey guys

I'm trying to make it so when a player repairs their vehicle at Pay N Spray that it sets their vehicle health to 999.0
but it's not setting the players vehicle health, it just repairs it to 1000.0 and stays on it.

the reason for this is because my anticheat detects them as hacking if their vehicle health is 1000.0 so yeah.


here is my code

PHP код:
public OnVehicleRespray(playeridvehicleidcolor1color2)
{
    new 
Float:CarHealth;
     
GetPlayerVehicleID(playerid);
      if(
GetVehicleHealth(playeridCarHealth) < 990.1)
    {
        
SetVehicleHealth(playerid999.0);
    }
    return 
1;

Reply
#2

https://sampwiki.blast.hk/wiki/OnVehicleRespray
THis callback is called for modshop.. Check Orange Box for the fix, then it will call for what you want to do..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)