08.01.2016, 18:09
I found this:
Credits to RajatPawar for this code.
Simply use HidePlayerHUD(playerid) to hide the hud and ShowPlayerHUD(playerid) to show it again.
Код:
new _HUDtimer[MAX_PLAYERS] = {-1, ... }; stock HidePlayerHUD(playerid) { return (_HUDtimer[playerid] = SetTimerEx("RepeatLevel", 1000, 1, "d", playerid)); } forward public RepeatLevel(playerid); public RepeatLevel(playerid) { return (SetPlayerDrunkLevel(playerid, 2001)) ; } stock ShowPlayerHUD(playerid) { if(_HUDtimer[playerid] != -1) KillTimer _HUDtimer[playerid]) ; }
Simply use HidePlayerHUD(playerid) to hide the hud and ShowPlayerHUD(playerid) to show it again.