/lobby ? - 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: /lobby ? (
/showthread.php?tid=653038)
/lobby ? -
NoteND - 24.04.2018
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.
Re: /lobby ? -
ItsRobinson - 24.04.2018
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.