SA-MP Forums Archive
Need help within X,Y,Z generating. - 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: Need help within X,Y,Z generating. (/showthread.php?tid=182711)



Need help within X,Y,Z generating. - Spiral - 12.10.2010

Hey folks

I got the code:
pawn Код:
AddPlayerClass(288,1351.9855,348.6165,20.4774,64.3828,0,0,0,0,0,0); // janimehaanik
How I change it to X,Y,Z code where I can make a spawn to and to a tele? like in stunt servs /aa andstuff, help?


Re: Need help within X,Y,Z generating. - Mauzen - 12.10.2010

I guess you got this code from the /save cmd and want to have the coordinates from it.
The bracket [] arguments are the x,y,z coordinates that you need (the second, third, and fourth argument, use them without the brackets later)

pawn Код:
AddPlayerClass(288,[1351.9855,348.6165,20.4774],64.3828,0,0,0,0,0,0); // janimehaanik
https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: Need help within X,Y,Z generating. - SkizzoTrick - 12.10.2010

x = 1351.9855
y = 348.6165
z = 20.4774


Re: Need help within X,Y,Z generating. - Spiral - 12.10.2010

Oh ye i got it from /save, thank you so Much Mauzen! I owe you one.