06.04.2013, 13:45
Hello, I am having some troubles with spawning the player on login. The user just go straight up in air, with the camera locked.
Here is a picture of what happens:
![](http://i712.photobucket.com/albums/ww124/Milleykings/sa-mp-253_zps930d977c.png)
This is my code:
This is the script, which basiclly spawns the player, no other place beside that do I have "SpawnPlayer(playerid);"
Here is a picture of what happens:
![](http://i712.photobucket.com/albums/ww124/Milleykings/sa-mp-253_zps930d977c.png)
This is my code:
Код:
if(Player[playerid][LastX] == 0 && Player[playerid][LastY] == 0 && Player[playerid][LastZ] == 0) { SpawnPlayer(playerid); SetPlayerPos(playerid, 2057.219970, -1926.541015, 13.546875); // THE SPAWN D SetPlayerFacingAngle(playerid, 179.03); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); } else { SpawnPlayer(playerid); SetPlayerVirtualWorld(playerid, Player[playerid][pVW]); SetPlayerInterior(playerid, Player[playerid][pInt]); SetPlayerPos(playerid, Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ]); SetPlayerFacingAngle(playerid, Player[playerid][LastA]); SetCameraBehindPlayer(playerid); }