MAX_PLAYERVEHICLES - 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: MAX_PLAYERVEHICLES (
/showthread.php?tid=596423)
MAX_PLAYERVEHICLES -
MrCallum - 17.12.2015
I've got it so a player can have a limit of seven vehicles [Max_playervehicles], could someone be kind enough to make me a command such as;
/mpavehicle
So the MAX_PLAYERVEHICLE+2 or something
Thanks.
Re: MAX_PLAYERVEHICLES -
ATomas - 17.12.2015
If you have compiled gamemode, you cant edit array size. Look for vector plugin.
Re: MAX_PLAYERVEHICLES -
MrCallum - 17.12.2015
What do you mean? I'm sure I can make a command so the player gets 9 vehicles when the command is placed on them...
Re: MAX_PLAYERVEHICLES -
SickAttack - 17.12.2015
You're at the wrong place if you are asking for code.
Re: MAX_PLAYERVEHICLES -
thefirestate - 17.12.2015
MAX_PLAYERVEHICLES is not what you are looking for. I am not making you a script but I will give you a few suggestion on how I would do it. Make unlimited vehicles with MySQL or SQLite as you set the owner to unique SQL ID or by checking his name, after that make him an array like in enum something like vSlots then you set it to the maximum slots he can have. After that you just check before he buy a car if he reached his vSlots value and if he did tell him a.k.a return SendClientMessage with an error.