About car 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)
+--- Thread: About car ownership (
/showthread.php?tid=443496)
About car ownership -
edzis84 - 12.06.2013
Can someone explain me how car ownership works?
I had idea to write players name to car
Like
if(owner[vehicleid] == GetPlayerName(playerid))
{
SCM(playerid,-1,"Welcome to your car");
But in this case if player changes his name he will lose all of his cars
Idea nr. two was to give each player like his id randomly which will never change and write cars to his ID
If this will work then can someone explain me how can i give theese id randomly to each player?
Re: About car ownership -
edzis84 - 12.06.2013
Anyone?
P.S Bumping because my topic is in page 2