for(new i; i < 2048; i++)
{
if(Text:i == Text:INVALID_TEXT_DRAW) continue;
TextDrawHideForAll(Text:i);
}
um like.. um D:
pawn Code:
|
um like.. um D:
pawn Code:
|
I'm assuming that'd only work if you named the textdraws 1, 2, 3, ect. Not to mention, a 2000 some-odd long loop would probably cause a lagspike.
|
............................................______ __
....................................,.-'"...................``~., .............................,.-"..................................."-., .........................,/...............................................":, .....................,?........................... ...........................\, .................../.................................................. .........,} ................./.................................................. ....,:`^`..} .............../.................................................. .,:"........./ ..............?.....__............................ .............:`.........../ ............./__.(....."~-,_..............................,:`........../ .........../(_...."~,_........"~,_....................,:`..... ..._/ ..........{.._$;_......"=,_......."-,_.......,.-~-,},.~";/....} ...........((.....*~_......."=-._......";,,./`..../"............../ ...,,,___.\`~,......"~.,....................`..... }............../ ............(....`=-,,.......`........................(......;_,,-" ............/.`~,......`-...............................\....../\ .............\`~.*-,.....................................|,./.....\,__ ,,_..........}.>-._\...................................|........... ...`=~-, .....`=~-,_\_......`\,.................................\ ...................`=~-,,.\,...............................\ ................................`:,,.............. .............`\..............__ .....................................`=-,...................,%`>--==`` ........................................_\........ ..._,-%.......`\ ...................................,<`.._|_,-&``................` |
those hud elements can't be hidden (map, time, etc).
You can hide them only with HackTool/m0d-50b3it-sa |
for (new i = 0; i < MAX_TEXT_DRAWS; i++) TextDrawDestroy(Text:i);
You can hide all server-created textdraw with this code snippet:
pawn Code:
|
pawn Code:
|
i think he wants do hide the San Andreas HUD. but those aren't textdraws.
|
............................................______ __
....................................,.-'"...................``~., .............................,.-"..................................."-., .........................,/...............................................":, .....................,?........................... ...........................\, .................../.................................................. .........,} ................./.................................................. ....,:`^`..} .............../.................................................. .,:"........./ ..............?.....__............................ .............:`.........../ ............./__.(....."~-,_..............................,:`........../ .........../(_...."~,_........"~,_....................,:`..... ..._/ ..........{.._$;_......"=,_......."-,_.......,.-~-,},.~";/....} ...........((.....*~_......."=-._......";,,./`..../"............../ ...,,,___.\`~,......"~.,....................`..... }............../ ............(....`=-,,.......`........................(......;_,,-" ............/.`~,......`-...............................\....../\ .............\`~.*-,.....................................|,./.....\,__ ,,_..........}.>-._\...................................|........... ...`=~-, .....`=~-,_\_......`\,.................................\ ...................`=~-,,.\,...............................\ ................................`:,,.............. .............`\..............__ .....................................`=-,...................,%`>--==`` ........................................_\........ ..._,-%.......`\ ...................................,<`.._|_,-&``................` |
if(strcmp(cmd,"/hidealltdw",true)== 0)
{
TextDrawHideForPlayer(textdraw1);
TextDrawHideForPlayer(textdraw2);
TextDrawHideForPlayer(textdraw3);
TextDrawHideForPlayer(textdraw4);
return 1;
}
Yeah...
At this moment it's impossible to hide HUD ( I know this is not your answer ), but you could actually create a client (and combine it with a plugin) to do this. This will require them to install the client, sadly. For your answer, use a variable per textdraw, and use a loop. |
You need to get all of you textdraws names then put
pawn Code:
|
if(strcmp(cmd,"/hidealltdw",true)== 0)
{
TextDrawHideForPlayer(textdraw1);
TextDrawHideForPlayer(textdraw2);
TextDrawHideForPlayer(textdraw3);
TextDrawHideForPlayer(textdraw4);
return 1;
}