Quote:
Originally Posted by iPLEOMAX
**Oh wait a minute, seems like i failed. Updating post.
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.
|
for what is that -1337 does i need to change in the secounts like 120000 ??
and secound*1000 ? :/