Spawn player not looking at the camera
#1

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 :!
Reply
#2

you are putting camera on players back ?

show us your code
Reply
#3

Remove line SetCameraBehindPlayer
Reply
#4

@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;
}
Reply
#5

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

And do /rs in game ?that stuff?
Reply
#7

Bump!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)