y_ini position loading issue
#1

So im making my gamemode from scratch using yini, everything is going neatly but this one thing is bothering me, position saving/loading.When players first ever register they spawn fine, but when they join the server and login they spawn at their last location but they fall through the ground and get automatically tp-ed to the surface.
Code:
Код:
if(PlayerInfo[playerid][NewReg] == 0)
	{
	    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
		SetPlayerPos(playerid, PlayerInfo[playerid][Xpos], PlayerInfo[playerid][Ypos]+1.0, PlayerInfo[playerid][Zpos]+0.3);
	}
That code is OnPlayerSpawn and checks the players last pos and skin and loads it.I tried to higher up the Zpos but i still get the same issue.What to do?
Reply


Messages In This Thread
y_ini position loading issue - by Mike861 - 22.04.2018, 19:40
Re: y_ini position loading issue - by StefaNO [ITA] - 22.04.2018, 20:25
Re: y_ini position loading issue - by Mike861 - 22.04.2018, 20:52
Re: y_ini position loading issue - by Mike861 - 23.04.2018, 06:38
Re: y_ini position loading issue - by andrejc999 - 23.04.2018, 06:42
Re: y_ini position loading issue - by Mike861 - 23.04.2018, 06:53

Forum Jump:


Users browsing this thread: 2 Guest(s)