/createpvehicle help +rep
#1

Has anyone got any ideas on how to make a fully functional saving and loading vehicle system;

I need so an admin can do /createpvehicle and give a player a vehicle which saves and loads also /destroypvehicle so an admin can destroy a player's vehicle.

Anyone got any ideas?
Reply
#2

I got an idea for creating a vehicle, once an admin/player or whatever spawns a vehicle, while spawning the vehicle it also adds it to a dialog which can be accessed by a player/admin by doing /vehicles or something.

So then when they do /vehicles or /pvehicles it will show the car that it saved by doing /createpvehicle and when they click on it, it will spawn a new one in.
Reply
#3

If you're using MySQL, it's more complex. Learn more about it then try again.

As for INI or whatever,
You save variables to their account.
when you do /createpvehicle, assign coords, prices, etc etc to the players variables and spawn the car.

EDIT: Use this as an example: https://sampforum.blast.hk/showthread.php?tid=193491
Reply
#4

Okay, thanks guys, I was thinking of making a UCP on a website so people can see players stats, how would I possibly do that? I'm currently using INI.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)