SA-MP Forums Archive
AddStaticVehicle - 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 (/showthread.php?tid=608866)



AddStaticVehicle - karoliko - 05.06.2016

Hello i downloaded a gamemode and all vehicles are like this type:
Код:
AddStaticVehicleEx(567,2428.6999512,-1643.6999512,13.5000000,0.0000000,16,16,SPAWN_CAR); //Savanna
I just want create the vehicle without that SPAWN_CAR.


Re: AddStaticVehicle - oMa37 - 05.06.2016

AddStaticVehicle?


Re: AddStaticVehicle - karoliko - 05.06.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
I changed it and i got error,
Код:
AddStaticVehicleEx(489,2448.3999023,-1671.0000000,13.8999996,0.0000000,16,16);
Error:
Код:
C:\Users\Usuario\Desktop\Karol\GangWars\gamemodes\Gangwars.pwn(719) : warning 202: number of arguments does not match definition



Re: AddStaticVehicle - ratxrat - 05.06.2016

AddStaticVehicle
Код:
AddStaticVehicle(modelid, Float:spawn_X, Float:spawn_Y, Float:spawn_Z,Float:angle, color1, color2);
example
Код:
 sultan black color primary
AddStaticVehicle(560, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
AddStaticVehicleEx
Код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay, addsiren=0)
example
Код:
 
sultan after leave 2 second vehicle back to respawn pos
AddStaticVehicleEx (560, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 0, 2);