/lobby ?
#1

Hey!

Im currently working on a gamemode which has playing state and lobby state. Lobby is basicly where u get textdraws of player stats etc. Now, I wanna ask u guys, how to make /lobby command so I could use SetPlayerCameraPos.. and SetPlayerCameraLookAt... cuz if I just type TogglePlayerSpectating(playerid, 1); it makes him spectate air. And thats not what I want.. i know its complicated to understand, but hopefully u do.
Reply
#2

Set the player somewhere near the place you want them to look at (so that the objects are streamed in) and then set the players camera pos with SetPlayerCameraPos and SetPlayerCameraLookAt.

Player spectating isn't needed for that.

Код:
SetPlayerPos(playerid, /*x, y, z*/);
SetPlayerCameraPos(playerid, /*x, y, z*/);
SetPlayerCameraLookAt(playerid, /*x, y, z*/);
Just put that under a /lobby command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)