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



AddPlayerClass - 1337pr0 - 19.03.2009

Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
I don't want to have to set Float, Float:y, and Float:z, because I use SetPlayerSpawnInfo to set each players spawn point randomly after they connect. At the moment, players keep spawning at the co-ordinates in AddPlayerClass, which is really annoying...


Re: AddPlayerClass - Chaprnks - 19.03.2009

Use this function before the person's position is set, although it will set it to a place then quickly set to the random place, it is the best quick fix you could use to make the player spawn where you want, in the end.


Re: AddPlayerClass - 1337pr0 - 19.03.2009

Ok, I think i've fixed it now.