How to make when you crash health gos down?
#1

How to make when you crash health gos down?, like 5 - one crash?
Reply
#2

PHP код:
        new veh,Float:vhp,Float:health;
        
veh GetVehicleID(playerid);
        
GetVehicleHealth(vehicleid,vhp);
        if(
vhp<250.0)
        {
          
GetPayerHealth(playerid,health);
          
SetPlayerHealth(playerid,health-5);
        } 
Am I somewhere close?
Reply
#3

He wants it to remove 5 HP and not set the HP to 5..
Reply
#4

Fixed it, hope it is right.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)