08.05.2012, 03:42
How can I make it remove all textdraws? Not just a single one? Do I have to use a loop or something?
for(new i = 0; i < MAX_TEXT_DRAWS; i++) TextDrawHideForPlayer(playerid, Text:i);
TextDrawHideForPlayer(playerid, /*your textdraw*/); //Just put ur textdraw name here and paste it where u want.. :D
Try this,not tested
Код:
for(new i = 0; i < MAX_TEXT_DRAWS; i++) TextDrawHideForPlayer(playerid, Text:i); |
/*
Available Textdraws:
literaltextdrawname, [ DESCRIPTION ] ((clickable?))
startup1, [ LOGIN ] (clickable)
startup2, [ REGISTER ] (clickable)
startup3, [ BOX ]
startup4, [ PLAYER COUNT ]
startup5, [ INFORMATION ]
news1, [ WELCOME ]
news2, [ ACTUAL NEWS ]
news3, [ NEWS BOX ]
XPLVL[playerid][0-5], [ XP METER ]
XPLevelUp, [ Show "LEVEL UP!" above the XP meter ]
Available Dialogs:
DIALOG_BLANK - Possible uses: Notifications, messages not requiring a response.
DIALOG_REGISTER - Registration dialog. Shouldn't have to add this / delete this anywhere in the script.
DIALOG_LOGIN - Login dialog. Possible uses: Temporary logout?
DIALOG_STATS - Statistics dialog.
*/
That would work assuming all of his textdraws are named "Text0", "Text1", ect.
|