SA-MP Forums Archive
Spawn player not looking at the camera - 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: Spawn player not looking at the camera (/showthread.php?tid=551846)



Spawn player not looking at the camera - NviDa - 21.12.2014

When I enter my server all I can see is the players back.What to do?
I checked other topics and did this:
Код:
   SetPlayerFacingAngle(playerid, 2.0111);
In PlayerRequestClass

Still I can only see the players back.

Help please :!


Re: Spawn player not looking at the camera - JeaSon - 21.12.2014

you are putting camera on players back ?

show us your code


Re: Spawn player not looking at the camera - rickisme - 21.12.2014

Remove line SetCameraBehindPlayer


Re: Spawn player not looking at the camera - NviDa - 21.12.2014

@rickisme
When I do that I can't even see the character. :/

@Namer
Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2508.1628,-1655.6744,13.5938);
    SetPlayerCameraPos(playerid,2508.1628,-1655.6744,13.5938);
    SetPlayerFacingAngle(playerid, 2.0111);
	SetPlayerInterior(playerid, 0);
	SetCameraBehindPlayer(playerid);
    switch(classid)
    {
         case 0:
         {
              SetPlayerTeam(playerid, Police);
              GameTextForPlayer(playerid, "~b~Police", 1000, 3);
          }

         case 1:
         {
              SetPlayerTeam(playerid, GroveGangsters);
              GameTextForPlayer(playerid, "~g~GroveGangsters", 1000, 3);
          }

     }
     return 1;
}



Re: Spawn player not looking at the camera - Vince - 21.12.2014

Well yeah, that's because your player coordinates and camera coordinates are exactly the same, which means the camera is inside the player. You may be able to fix it by moving SetPlayerFacingAngle after SetCameraBehindPlayer and turning the player around 180 degrees.


Re: Spawn player not looking at the camera - NviDa - 21.12.2014

And do /rs in game ?that stuff?


Re: Spawn player not looking at the camera - NviDa - 21.12.2014

Bump!