SA-MP Forums Archive
[HELP] SetVehiclePos(...) - 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: [HELP] SetVehiclePos(...) (/showthread.php?tid=161969)



[HELP] SetVehiclePos(...) - lukica - 21.07.2010

hy...command is this:

Код:
public OnVehicleSpawn(vehicleid) {
	for(new i = 1; i < sizeof(cInfo); i++) { ChangeVehicleColor(cInfo[i][ownedvehicle],cInfo[vehicleid][cBoja1],cInfo[vehicleid][cBoja2]); SetVehiclePos(cInfo[i][ownedvehicle], cInfo[i][cPosX],  cInfo[i][cPosY],  cInfo[i][cPosZ]); }
	return 1; }

But it dont changes vehicle poss on spawn...dont hnow why :S


Re: [HELP] SetVehiclePos(...) - MisterTickle - 21.07.2010

Can you explain with cInfo and what exactly you're trying to do?


Re: [HELP] SetVehiclePos(...) - lukica - 21.07.2010

Im bad et english but anyway...

Vehicle coords are loaded from file, rent vehicle, and when player exit vehicle the coords change...so when server respawn vehicle Im trying to vehicle spawn at coords where player exited vehicle... But it spawns always on position where server spawns it when I turn script on...

Do you understande now problem ?

tnx