SetPlayerPos Problem - 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: SetPlayerPos Problem (
/showthread.php?tid=528731)
SetPlayerPos Problem -
McBan - 29.07.2014
Hello Guys!,
I'm currently making a custom Game-Mode and I have encountered a problem.
I have made a mapping in the sky at the co-ordinates ("1207.9580, 2809.4019, 1151.7083"). I have also tested the map and found a place for the player to spawn which is just a few cm's away from that co-ordinate however when I start up the ("server.exe") it will only spawn me in the same location but on the ground. The Co-Ordinates are correct and it should spawn me inside my mapping however it spawns me in the same location but on the ground. Is their some limit or something in the new 0.3z?
Thanks for any help.
Re: SetPlayerPos Problem -
AMouldyLemon - 29.07.2014
OnPlayerSpawn, did you place it in there?
pawn Код:
public OnPlayerSpawn
{
SetPlayerPos(playerid, x, y, z);
}
Re: SetPlayerPos Problem -
McBan - 29.07.2014
Yes.
Re: SetPlayerPos Problem -
AMouldyLemon - 29.07.2014
Show it please.
Re: SetPlayerPos Problem -
McBan - 29.07.2014
Thanks for your help, I forgot to write ("SpawnPlayer(playerid);") when he logged in.