Callback - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Callback (
/showthread.php?tid=181938)
Callback -
Mr.Ilusion - 08.10.2010
Is there an callback to hide health bar and armor bar ?
Re: Callback -
Calgon - 08.10.2010
https://sampwiki.blast.hk/wiki/ShowNameTags
Not a callback, a function. The function above has to be used in OnGameModeInit, if you wish to change health bars/nametag status' during game run-time use:
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
Re: Callback -
Mr.Ilusion - 08.10.2010
I said health bar, not name tag.
Re: Callback -
Retardedwolf - 08.10.2010
Quote:
Originally Posted by Mr.Ilusion
I said health bar, not name tag.
|
Disabling Nametags disable the health bar too.
Re: Callback -
Calgon - 08.10.2010
Quote:
Originally Posted by Mr.Ilusion
I said health bar, not name tag.
|
If you read the wiki page properly (then again, that's probably too much to expect from someone who failed to spell 'illusion' correctly), you would have seen:
Quote:
This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head.
|
Re: Callback -
Mr.Ilusion - 08.10.2010
I'm talking about health bar near money, top right.
Re: Callback -
Calgon - 08.10.2010
Quote:
Originally Posted by Mr.Ilusion
I'm talking about health bar near money, top right.
|
Be more specific. You could cover it with a textdraw, or find a way to hide the HUD (drunk levels / spectating tends to hide the HUD, but those aren't exactly convenient solutions).
Re: Callback -
Voldemort - 08.10.2010
If you want hide HUD in specific momnent use
pawn Код:
SetPlayerCameraPos(..
SetPlayerCameraLookAt(...
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);