SA-MP Forums Archive
Need help; got alot of cars on the server - 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: Need help; got alot of cars on the server (/showthread.php?tid=180434)



Need help; got alot of cars on the server - xxxDunecatxxx - 01.10.2010

Hello folks, I got a few questions for you guys regarding vehicles, I need help with them.

So my server has alot of people on it and my car system works by me adding the cars manually (until i added a command to restock the cars automatically). Not everyone on my server has a car and they want one, I just have one problem; I have 800 fuckin' cars on the server and I need help on how I could reduce that amount.

1) I thought about making it so if the vehicle owner is inactive for at least 2 weeks, their vehicle automatically goes on sale and it teleports the car to the same place they bought it at. I've already made it so it detects how long a player has been offline for using a command (if you look at the thread I made), I just don't know how I would automatically do this.

2) I thought about making it so if the owner logs off, their car disappears as well.

Do you guys have any tips?


Re: Need help; got alot of cars on the server - jameskmonger - 01.10.2010

1) No! If you went on holiday, came back and your car was gone then you'd be annoyed!

Make it so that they have to set a parking place, and they can only de-spawn their car there, but when they go there and type /park, their car disappears, and they have to do /park again to get their car back.