|
new PlayerSeconds[MAX_PLAYERS] = 10; |
new string[24];
format(string,sizeof(string),"00:%d",PlayerSeconds[playerid]);
TextDrawSetString(JailTimer3,string);
|
new Text:JailTimer3; |
JailTimer3 = TextDrawCreate(554.000000, 376.000000, "00:00");
TextDrawBackgroundColor(JailTimer3, 255);
TextDrawFont(JailTimer3, 1);
TextDrawLetterSize(JailTimer3, 0.320000, 1.000000);
TextDrawColor(JailTimer3, 10027263);
TextDrawSetOutline(JailTimer3, 0);
TextDrawSetProportional(JailTimer3, 1);
TextDrawSetShadow(JailTimer3, 1);
forward Unjail(playerid);
public Unjail(playerid)
{
new string[24];
format(string,sizeof(string),"00:%d",PlayerSeconds[playerid]);
TextDrawSetString(JailTimer3,string);
SetPlayerPos(playerid,-1753.6743,885.2703,295.8750);
return 1;
}
|
TextDrawShowForPlayer(playerid, JailTimer0); TextDrawShowForPlayer(playerid, JailTimer1); TextDrawShowForPlayer(playerid, JailTimer2); TextDrawShowForPlayer(playerid, JailTimer3); TextDrawShowForPlayer(playerid, JailTimer4); SetTimerEx("Unjail", 60000, 1, "i", playerid);// 1 second = 1000(milliseconds) |
|
You need to keep updating the textdraw in order for it to show the countdown, take a look at other countdown scripts and get something from there, instead of asking for help everytime... try using the search function and actually learn something
|