Changing Gang Vehicle and Colors
#1

Hai,
Can you guys help me how to change Gang Vehicle
and Gang Vehicle Colors on Raven's roleplay?
Reply
#2

You should have IsAGangCar, and there will be id's
pawn Код:
if(carid >= 184 && carid <= 188)
and under
pawn Код:
public OnGameModeInit()
you will have cars like this
pawn Код:
AddStaticVehicleEx(462,1147.8085,-1369.0753,13.7444,270.6804,39,39,2700); // Faggio 112
    AddStaticVehicleEx(462,1148.2661,-1371.2933,13.7557,270.6804,16,16,2700); // Faggio 113
    AddStaticVehicleEx(462,1148.2762,-1373.2805,13.7678,270.6804,6,6,2700); // Faggio 114
So you must add id of vehicle(no vehicle id, but id of vehicle in your script) and after coordinates are like this numbers 16,16 it's colour id's, after this numbers is only respawn timer, but you need only that two numbers.. you must do your colour, you can find there: https://sampwiki.blast.hk/wiki/Color_ID and first number is id of vehicle you can find there:https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
I hope i helped
Reply
#3

But it is:
Код:
public IsAGangCar4(carid)
{
	for(new i = 0; i < sizeof(bratvacar); i++)
	{
		if(carid == bratvacar[i])	return 1;
	}
	return 0;
}
Reply
#4

Just press CTRL + F, type bratvacar[ , and at AddStaticVehicle just change the Model parameter, Color 1 Parameter & Color 2 Parameter.
https://sampwiki.blast.hk/wiki/AddStaticVehicle

Let's say it's something like this:
Код:
bratvacar[0] = AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
520 - the model id
0 - Color 1
1 - Color 2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)