SA-MP Forums Archive
AddStaticVehicle help - 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)
+--- Thread: AddStaticVehicle help (/showthread.php?tid=320495)



AddStaticVehicle help - WardenCS - 23.02.2012

Hello,i was scripting cars system and i wanted to this that way : you can change car IDs with cmd and color but it only changes when the server has been restarted,is there any way that you can change the color and id when the car respawns ?

heres the code after ongamemodeinit

Код:
	AddStaticVehicle(OrgInfo[i][Car1],OrgInfo[i][Car1x],OrgInfo[i][Car1y],OrgInfo[i][Car1z],0.00000000,vcolor,vcolor);



Re: AddStaticVehicle help - WardenCS - 24.02.2012

yes,but i hoped that someone could help me...


Re: AddStaticVehicle help - WardenCS - 24.02.2012

vehicle functions?


Re: AddStaticVehicle help - WardenCS - 29.02.2012

BUMP

well i guess i can change the color of vehicle with ChangeVehicleColor
but how do i check the id of the car when it spawns multiple cars with this
Код:
	AddStaticVehicle(OrgInfo[i][Car1],OrgInfo[i][Car1x],OrgInfo[i][Car1y],OrgInfo[i][Car1z],0.00000000,vcolor,vcolor);



Re: AddStaticVehicle help - WardenCS - 02.03.2012

heyho bump


Re: AddStaticVehicle help - Gamer_Z - 02.03.2012

Quote:
Originally Posted by WardenCS
Посмотреть сообщение
heyho bump
AddStaticVehicle returns an vehicleid,
you can destroy the vehicle with DestroyVehicle(vehicleid);

then just create the vehicle again,m but with your desired ID.