VehicleHealth HELPPP
#1

Hey, the Vehilce health show it only when u're in the car, when u outside u cant see it, u see the vehicle auto health... the normal... how to fix it?


Код:
public OnVehicleSpawn(vehicleid)
{
new newstate;
new playerid;
new oldstate;
        if(newstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
    new vehicle = GetPlayerVehicleID(playerid);
    new model = GetVehicleModel(vehicle);
    switch(model)
    {
        case 541: SetVehicleHealth(vehicle, 1500);
        case 596: SetVehicleHealth(vehicle, 2000);
        case 560: SetVehicleHealth(vehicle, 1500);
        case 402: SetVehicleHealth(vehicle, 1500);
        case 427: SetVehicleHealth(vehicle, 7500);
        case 528: SetVehicleHealth(vehicle, 5000);
        case 599: SetVehicleHealth(vehicle, 2000);
        case 601: SetVehicleHealth(vehicle, 4000);
        case 490: SetVehicleHealth(vehicle, 2500);
        case 433: SetVehicleHealth(vehicle, 4000);
        case 470: SetVehicleHealth(vehicle, 2500);
        case 432: SetVehicleHealth(vehicle, 10000);
        case 497: SetVehicleHealth(vehicle, 2500);
        case 487: SetVehicleHealth(vehicle, 1500);
    }
}
Reply


Messages In This Thread
VehicleHealth HELPPP - by yaron0600 - 29.11.2013, 16:33
Re: VehicleHealth HELPPP - by Brandon_More - 29.11.2013, 16:35
Re: VehicleHealth HELPPP - by Konstantinos - 29.11.2013, 16:42
Re: VehicleHealth HELPPP - by yaron0600 - 29.11.2013, 17:23
Re: VehicleHealth HELPPP - by Konstantinos - 29.11.2013, 17:25
Re: VehicleHealth HELPPP - by dannyk0ed - 29.11.2013, 17:30
Re: VehicleHealth HELPPP - by Konstantinos - 29.11.2013, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)