Vehicle Health
#6

Quote:
Originally Posted by Pepino960
Посмотреть сообщение
uhh damn, thanks :/
You may respawn it right after it gets created, or use SetVehicleHealth.

You can also create a function that automatically Add vehicles, then set their health.

pawn Код:
stock AddReinforcedCar(modelid,Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle,color1,color2,respawn_delay = 0,Float:health = 100.0);
{
    new carid = AddStaticVehicleEx(modelid,spawn_x,spawn_y,spawn_z,angle,color1,color2,respawn_delay);
    SetVehicleHealth(carid,health);
    return carid;
}
Now just use:

pawn Код:
AddReinforcedCar(modelid,Float:spawn_x,Float:spawn_y,Float:spawn_z,Float:angle,color1,color2,respawn_delay,Float:health); // Where health are optional.
Reply


Messages In This Thread
Vehicle Health - by Pepino960 - 09.05.2014, 12:22
Re: Vehicle Health - by arakuta - 09.05.2014, 12:24
AW: Vehicle Health - by Pepino960 - 09.05.2014, 12:24
AW: Vehicle Health - by Pepino960 - 09.05.2014, 12:26
Re: Vehicle Health - by Bingo - 09.05.2014, 12:27
Re: AW: Vehicle Health - by arakuta - 09.05.2014, 12:29
AW: Vehicle Health - by Pepino960 - 09.05.2014, 13:01
Re: AW: Vehicle Health - by Bingo - 09.05.2014, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)