Vehicle HP
#1

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?
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleHealth
Reply
#3

SetVehicleHealth

https://sampwiki.blast.hk/wiki/SetVehicleHealth
Reply
#4

The max is HP for it is 1000
Reply
#5

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)!
Reply
#6

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

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...
Reply
#8

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...
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)