SA-MP Forums Archive
Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=228354)



Look Here ! - Rock18 - 19.02.2011

Hey , today i've tryed to make EUM (Easy User Menu) to hide automaticaly after 10 seconds instead pressing LMB to hide . Didn't succeded .

Any Ideas how to do it ?


Re: Help - Sascha - 19.02.2011

use a timer :P

at the top:
pawn Код:
forward MenuTimer(playerid);
where you show the textdraw
pawn Код:
SetTimerEx("MenuTimer", 10000, false, "i", playerid);
somewhere
pawn Код:
public MenuTimer(playerid)
{
    HideTextDrawForPlayer(playerid, textdrawid);
    return 1;
}