making team car colors
#2

pawn Code:
//top of script
new GroveCar[10]; // or however many you want

//under OnGamemodeInit
GroveCar[0] = AddStaticVehicle(etc.) // Arrays start at 0, and it counts as 1
GroveCar[1] =
.
.
.
GroveCar[9] =

// You have 2 options. You can set all the car colors to green in spawn info^ OR make a foreach loop:
for (new i = 0; i<sizeof(GroveCar);i++)
{
ChangeVehicleColor(GroveCar[i], 128, 128); // Sets all GroveCars to Green on spawn
}

// You would have to do this process for each of the gangs, but I hope this is a helpful start. :)
EDIT: fixed typos
Reply


Messages In This Thread
making team car colors - by 1fret - 09.03.2014, 22:03
Re: making team car colors - by Aerotactics - 09.03.2014, 22:27
Re: making team car colors - by 1fret - 09.03.2014, 22:32
Re: making team car colors - by Aerotactics - 09.03.2014, 22:44
Re: making team car colors - by 1fret - 09.03.2014, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)