Saving vehicle health
#1

How would I save the health/damage of a vehicle?
Reply
#2

I don't understand, where do you want to save it.. or why ?
Reply
#3

Quote:
Originally Posted by Roach_
Посмотреть сообщение
I don't understand, where do you want to save it.. or why ?
Like when the player disconnects it says the vehicle damage of their vehicle and when the player reconnects the vehicle health is set to what it was when the said player disconnected. And the reason why is because I'm editing a rp script and I don't want the player to disconnect to avoid paying for something to fix their vehicle.
Reply
#4

You talk about personal vehicles?
Reply
#5

Quote:
Originally Posted by Roach_
Посмотреть сообщение
You talk about personal vehicles?
Yes but thats not the point, The point is that I want to now how to get the vehicles health and then save it.
Reply
#6

Depends on what Save System do you have..
The function is:
pawn Код:
GetVehicleHealth(vehicleid, &Float:health);
Reply
#7

Quote:
Originally Posted by Roach_
Посмотреть сообщение
Depends on what Save System do you have..
The function is:
pawn Код:
GetVehicleHealth(vehicleid, &Float:health);
Thanks for the help mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)