22.04.2018, 19:40
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:
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?
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); }