if (dialogid == DIALOG_TUTORIAL7)
{
SpawnPlayer(playerid);
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(ect, ect ,ect);
}
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. |
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. |
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);
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid,1,57,0.0,0.0,0.0,0.0,12,100,13,100,14,100); // those were random teamid, coordinates and weapons
SpawnPlayer(playerid);
return 0;
}
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. |
Found out...
PHP код:
|