07.09.2017, 19:34
Quote:
TogglePlayerSpectating();
This hides the whole HUD for a player, but disables key states. SpawnPlayer(); TogglePlayerControllable(); SetCameraPos(); You can spawn the player and that will force the player to hide the spawn buttons. SetPlayerDrunkLevel(); Check it's Wiki, it can hide the GUI and HUD on a high level. |
PHP код:
TogglePlayerSpectating(playerid, true);
SpawnPlayer(playerid);
SetPlayerPos2(playerid, dini_Float(AddDirFile(dir_userfiles, playername), "X"), dini_Float(AddDirFile(dir_userfiles, playername), "Y"), dini_Float(AddDirFile(dir_userfiles, playername), "Z"), dini_Float(AddDirFile(dir_userfiles, playername), "A"), dini_Int(AddDirFile(dir_userfiles, playername), "I"), dini_Int(AddDirFile(dir_userfiles, playername), "W"), dini_Int(AddDirFile(dir_userfiles, playername), "skin"));
SetCameraBehindPlayer(playerid);
TogglePlayerSpectating(playerid, false);