SA-MP Forums Archive
/createpvehicle help +rep - 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: /createpvehicle help +rep (/showthread.php?tid=567807)



/createpvehicle help +rep - MrCallum - 16.03.2015

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?


Re: /createpvehicle help +rep - FiveCentz - 16.03.2015

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.


Re: /createpvehicle help +rep - BleverCastard - 16.03.2015

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


Re: /createpvehicle help +rep - MrCallum - 16.03.2015

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.