Need some help with "OnPlayerRequestClass" [Solved]
#1

I can't take the camera positions to make a spawn point and I need some help how to do it... Also the point is inside an interior can anyone help me?

-thanks
Reply
#2

Use debug
Reply
#3

Ok and what else I sould do?
Reply
#4

You could try to use my OnPlayerRequestClass creator FS (check my signature).
Reply
#5

You need 4 things:
The position where the player will stand (which is also what the camera will look at)-x,y,z
The position where the camera will be-cx,cy,cz
The angle that the player faces at- A
The interior ID- IID
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
  SetPlayerPos(playerid,x,y,z);
  SetPlayerCameraPos(playerid,cx,cy,cz);
  SetPlayerCameraLookAt(playerid,x,y,z);
  SetPlayerFacingAngle(playerid,A);
  SetPlayerInterior(playerid,IID);
  return 1;
}
Reply
#6

Fixed/Solved

I didn't knew that the "SetPlayerCameraLookAt" must me the same as the player's!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)