Posts: 442
Threads: 133
Joined: Apr 2014
Reputation:
0
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.
Posts: 278
Threads: 66
Joined: Jul 2009
Reputation:
0
If you have compiled gamemode, you cant edit array size. Look for vector plugin.
Posts: 442
Threads: 133
Joined: Apr 2014
Reputation:
0
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...
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
You're at the wrong place if you are asking for code.
Posts: 170
Threads: 7
Joined: Sep 2014
Reputation:
0
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.