Qvick help about car spawn [Idea need] - 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: Qvick help about car spawn [Idea need] (
/showthread.php?tid=339047)
Qvick help about car spawn [Idea need] -
Azazelo - 02.05.2012
Is it possible to change car REspawn coordinates , and keep same object id ?
Re: Qvick help about car spawn [Idea need] -
Passout - 02.05.2012
Yes it is possible.
new Float:gRandomCarSpawns[2][4] = {
{0.0,0.0,0.0,0.0}, // SPAWN1
{0.0,0.0,0.0,0.0}, // SPAWN1
};
new rand = random(sizeof(gRandomCarSpawns));
CreateVehicle(560,gRandomCarSpawns[rand][0], gRandomCarSpawns[rand][1], gRandomCarSpawns[rand][2],gRandomCarSpawns[rand][3],0,0,1000);
etc etc etc