Object Spawning - 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: Object Spawning (
/showthread.php?tid=276569)
Object Spawning -
svaba - 14.08.2011
PHP код:
feuer[playerid] = CreateObject(18688, x,y,z,0,0,0);
Currently this is spawning above players head, can anyone give the coords to spawn in on the ground?
Re: Object Spawning -
Grim_ - 14.08.2011
You would need to use the MapAndreas plugin to retrieve the appropriate Z coordinate. You can find it here:
https://sampforum.blast.hk/showthread.php?tid=120013
However, you could also check the offset of the player and just decrease the z value by that much. It wouldn't be perfect, but would reduce the use of this plugin, and saving you some memory.
Re: Object Spawning -
svaba - 14.08.2011
mhh thanks