SA-MP Forums Archive
Vehicle HP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle HP (/showthread.php?tid=469484)



Vehicle HP - yaron0600 - 13.10.2013

Hey, just looking for an help about vehicles, Look I want a vehicle health like a police car has 5000HP or something like that, how can I do that?


Re: Vehicle HP - Konstantinos - 13.10.2013

https://sampwiki.blast.hk/wiki/SetVehicleHealth


Re: Vehicle HP - detter - 13.10.2013

SetVehicleHealth

https://sampwiki.blast.hk/wiki/SetVehicleHealth


Re: Vehicle HP - Zex Tan - 13.10.2013

The max is HP for it is 1000


Re: Vehicle HP - Konstantinos - 13.10.2013

Quote:
Originally Posted by Zex Tan
Посмотреть сообщение
The max is HP for it is 1000
The default max health for them, like for player's is 100. However, you can set a higher health.

If you couldn't set the health more than 1000, then there wouldn't be a vehicle god (but there is)!


Re: Vehicle HP - detter - 13.10.2013

Quote:
Originally Posted by Zex Tan
Посмотреть сообщение
The max is HP for it is 1000
test it ( i just did)


Re: Vehicle HP - yaron0600 - 13.10.2013

Can you help me, Like look, I want it code with no command, Like on player get any vehicle doesnt metter the ID, is Patriot the HP is 3000...


Re: Vehicle HP - yaron0600 - 13.10.2013

Look, I just did it, but I did this code
Код:
    new vehicleid = GetPlayerVehicleID(playerid);
    SetVehicleHealth(470, 3000);
I want the car id is 470 - Patriot, like each patriot get 3000hp and it did it on car id 470 and this is stretch...


Re: Vehicle HP - DanishHaq - 13.10.2013

pawn Код:
new vehicle = GetPlayerVehiceID(playerid);
new model = GetVehicleModel(vehicle);
if(model == 470) SetVehicleHealth(vehicle, 3000);



Re: Vehicle HP - yaron0600 - 13.10.2013

Код:
new vehicle = GetPlayerVehiceID(playerid);
error 017: undefined symbol "GetPlayerVehiceID"