help with count down secounts
#3

UPDATED.

Made a func, will work i guess. (Ignore the warning).
pawn Код:
forward TimeTextDrawShowForPlayer(playerid, Text:textid, second);
public TimeTextDrawShowForPlayer(playerid, Text:textid, second)
{
    if(second == -1337) { TextDrawHideForPlayer(playerid, textid); }
    else {
        TextDrawShowForPlayer(playerid, textid);
        SetTimerEx("TimeTextDrawShowForPlayer", second*1000, false, "ddd", playerid, textid, -1337);
    }
    return true;
}
Use it like this:
pawn Код:
new Text:lol;

//Somewhere:
lol = TextDrawCreate(86.000000, 91.000000, "lol");

//Whereever you like:
TimeTextDrawShowForPlayer(playerid, lol, 120);
//This will show "lol" on playerid's screen for 120 seconds.
//Just don't use -times.
Reply


Messages In This Thread
help with count down secounts - by Rafa - 27.07.2011, 17:14
Re: help with count down secounts - by Riddick94 - 27.07.2011, 17:23
Re: help with count down secounts - by iPLEOMAX - 27.07.2011, 17:26
Re: help with count down secounts - by Rafa - 27.07.2011, 17:36
Re: help with count down secounts - by iPLEOMAX - 27.07.2011, 17:43
Re: help with count down secounts - by Rafa - 27.07.2011, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)