SA-MP Forums Archive
Camera and player connection ? - 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: Camera and player connection ? (/showthread.php?tid=481406)



Camera and player connection ? - NeroX98 - 15.12.2013

Hi guys.

Im making my own Login/Register system, but i have one weird problem... The problem is that the player is not standing on the coordinates which i set to stand.

Code:
pawn Code:
AC_BS_SetPlayerVirtualWorld(playerid, StorijaVW); //setting player VW
SetPlayerInterior(playerid,10); // setting the int of the casino
SetPlayerCameraPos(playerid, 1956.9272, 1016.6543, 995.5369); //setting the camera position
SetPlayerCameraLookAt(playerid, 1957.3544, 1015.7533, 995.0121); // setting the camera look at position
AC_BS_SetPlayerPos(playerid, 1957.8490, 1010.7545, 992.4688); // PLAYER POSITION !!! <-------------
SetPlayerFacingAngle(playerid, 266); // PLAYER FACING ANGLE <-------------
Detailed description of the problem: So if you see the code above there are no errors and everything is ok. The camera coords are ok everything is ok except that the player is not showing on that location... I want the camera to look at the player but the player is missing.


Re: Camera and player connection ? - NeroX98 - 15.12.2013

i tried adding player class on that coordinates, but the object is not showing again...
pawn Code:
AddPlayerClass(228, 1957.8490, 1010.7545, 992.4688, 266, 0, 0, 0, 0, 0, 0);



Re: Camera and player connection ? - Tagathron - 15.12.2013

You need to set the player's location and camera when he spawns.
( OnPlayerSpawn(playerid) )