Textdraw Timer
#1

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.
Reply
#2

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;
}
Reply
#3

hmm good idea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)