13.02.2014, 06:47
Yea i got you, just hide the previous Textdraw for example:
OR
If you want to make a simple system to close all of it at once without rewritting it all again just:
pawn Код:
CMD:test(playerid)
{
TextDrawHideForPlayer(playerid, Textdrawname);
TextDrawShowForPlayer(playerid, OtherTextDraw);
return 1;
}
OR
If you want to make a simple system to close all of it at once without rewritting it all again just:
pawn Код:
forawrd RemoveAllTextdraws(playerid);
stock RemoveAllTextdraws(playerid)
{
TextDrawHideForPlayer(playerid, Textdrawname);
TextDrawHideForPlayer(playerid, Textdrawname);
TextDrawHideForPlayer(playerid, Textdrawname);
TextDrawHideForPlayer(playerid, Textdrawname);
return 1;
}
CMD:test(playerid)
{
RemoveAllTextdraws(playerid);
TextDrawShowForPlayer(playerid, Textdrawname); // The new one.
return 1;
}