10.07.2010, 15:27
Yes, you would have to use a TextDraw array, so e.g. add this to your global variables:
new Text:draws[MAX_PLAYERS];
In TextDrawShowHideForPlayer save the textdraw in there:
draws[playerid] = textdraw;
Then you can use draws[playerid] in HideTextdraw. Only negative aspect would be, you can only have one Textdraw per player at the same time, or draws will be overwritten and the old one does not hide.
new Text:draws[MAX_PLAYERS];
In TextDrawShowHideForPlayer save the textdraw in there:
draws[playerid] = textdraw;
Then you can use draws[playerid] in HideTextdraw. Only negative aspect would be, you can only have one Textdraw per player at the same time, or draws will be overwritten and the old one does not hide.