SA-MP Forums Archive
Textdraw Timer - 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)
+--- Thread: Textdraw Timer (/showthread.php?tid=299996)



Textdraw Timer - vassilis - 28.11.2011

Hey guys emm i wonder how i can make a textdraw to be destroyed each specific time..?
example:if a player type /help it will show him a textdraw for a specific time ..after the time end..it will hide it to the player
Cheers.


Re: Textdraw Timer - Baboon - 28.11.2011

I would use SetTimerEx and TextDrawShowForPlayer and HideforPlayer
like:

in a command:
TextDrawShowForPlayer(playerid, textdraw);
SetTimerEx("hidetextdraw", time, false, "dd", playerid, textdaw);

somewhere in teh script:
forward hidetextdraw(playerid, textdraw);
public hidetextdraw(playerid, textdraw)
{
TextDrawHideForPlayer(playerid, textdraw);
return 1;
}


Re: Textdraw Timer - vassilis - 28.11.2011

hmm good idea