MAX_PLAYERVEHICLES
#1

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.
Reply
#2

If you have compiled gamemode, you cant edit array size. Look for vector plugin.
Reply
#3

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...
Reply
#4

You're at the wrong place if you are asking for code.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)