Need scripting help with vehicle spawn command
#2

rather than giving it type how about making a variable hold it?
PHP код:
#define MAX_ADMINVEHICLES 2
new AdminVehicle[MAX_ADMINVEHICLES]; 
then on your code upon creating
PHP код:
AdminVehicle[vehicleid] = CreateVehicle(params//<- that vehicleid should be a free id and you can make an admin only spawn two cars by adding some constraints 
You can also add constraints that a player tries to seat on the driver seat of the admin vehicle will be thrown off from the seat and will only be allowed to seat on the passenger seat. That's already easy.. so hope you get the idea and it helps.

Oh yeah ones the vehicle gets destroyed make sure to destroy it also or it will respawn on the spot you have created it...
Reply


Messages In This Thread
Need scripting help with vehicle spawn command - by DarknesS1988 - 19.09.2017, 07:21
Re: Need scripting help with vehicle spawn command - by JesterlJoker - 19.09.2017, 08:14
Re: Need scripting help with vehicle spawn command - by Sew_Sumi - 19.09.2017, 08:43
Re: Need scripting help with vehicle spawn command - by DarknesS1988 - 19.09.2017, 09:14
Re: Need scripting help with vehicle spawn command - by Sew_Sumi - 19.09.2017, 10:04

Forum Jump:


Users browsing this thread: 1 Guest(s)