Changing Gang Vehicle and Colors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Changing Gang Vehicle and Colors (
/showthread.php?tid=271029)
Changing Gang Vehicle and Colors -
James_Bourne - 22.07.2011
Hai,
Can you guys help me how to change Gang Vehicle
and Gang Vehicle Colors on Raven's roleplay?
Re: Changing Gang Vehicle and Colors -
spaty2 - 22.07.2011
You should have IsAGangCar, and there will be id's
pawn Код:
if(carid >= 184 && carid <= 188)
and under
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
Re: Changing Gang Vehicle and Colors -
James_Bourne - 22.07.2011
But it is:
Код:
public IsAGangCar4(carid)
{
for(new i = 0; i < sizeof(bratvacar); i++)
{
if(carid == bratvacar[i]) return 1;
}
return 0;
}
Re: Changing Gang Vehicle and Colors -
MoroDan - 22.07.2011
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