SA-MP Forums Archive
get car color - 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: get car color (/showthread.php?tid=124655)



get car color - jasonnw666 - 31.01.2010

.


Re: get car color - xCoder - 31.01.2010

That's just impossible i think.


Re: get car color - jasonnw666 - 31.01.2010

but if i spawn car and set color ,
if i want save this car with the color its not possible?


Re: get car color - jasonnw666 - 31.01.2010

..


Re: get car color - ray187 - 31.01.2010

Just save the parameters given for colors when someone does /addveh ?


Re: get car color - jasonnw666 - 31.01.2010

yes just save param color 1 and 2

but i don't know how stock param color1 and color2


Re: get car color - ray187 - 31.01.2010

What do you mean?


Re: get car color - jasonnw666 - 31.01.2010

i spawn a car with a command "/spawncar"
then i choose a color with command "/setcarcolor color1 color2

then i add a car in a file (after the gamemode reload the file to createvehicles) with the command /addveh

my problem is to save the colors of the car too


Re: get car color - ray187 - 31.01.2010

Well in case your /setcarcolor command works as it should just save color1 and color2 in that file that stores your vehicle data, and when doing /addveh it will create the vehicle with those colors stored.

Pretty cumbersome as you got so many commands for just one thing but without altering too much code that should do the trick.


Re: get car color - jasonnw666 - 31.01.2010

..