27.07.2011, 17:26
UPDATED.
Made a func, will work i guess. (Ignore the warning).
Use it like this:
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;
}
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.