Camera and player connection ?
#1

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.
Reply
#2

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);
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)