SA-MP Forums Archive
Vehicle ownership - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle ownership (/showthread.php?tid=196383)



Vehicle ownership - DRIFT_HUNTER - 05.12.2010

Ok i whona start vehicle ownership system and i have question
What is best way to detect vehicle owner and does player got keys from car?


Re: Vehicle ownership - Hornet600 - 05.12.2010

Well try something like this

new carid = CreateVehicle(model, X, Y, Z, A, color1, color2, 62*120000);

the carid its the keys , when someone buy the car you just need to make something like this

playerinfo[playerid][key1] = carid;

then you just need make checks for everything in your script and i can gurante the keys will match