Set timer inside a textdraw
#10

Now it appears to be

"respawn in 48"

instead to appear "respawn in 30:00" (30 minutes, 00 seconds)



And it won't refresh


Whole script


PHP код:
new respawnupdate[285];
public 
OnPlayerConnect(playerid)
{
     
TextDrawShowForPlayer(playeridTDEditor_TD[1]);
      
format(respawnupdate,sizeof(respawnupdate),"RESPAWN IN: %d",TimeConvert(RespawnGeneral()));
      
TextDrawSetString(TDEditor_TD[1], respawnupdate);
timer RespawnGeneral[1800000]()
{
    
DayZSA_RespawnItems();
    return 
1;
}
public 
RespawnCount(playerid)
{
    if(
RespawnGeneral() == 0)
    {
        
KillTimer(playertimer[playerid]);
    }
    else
    {
        new 
str[32];
        
format(strsizeof(str), "%s"TimeConvert(RespawnGeneral()));
    }
    return 
1;

Reply


Messages In This Thread
Set timer inside a textdraw - by Zeus666 - 29.09.2018, 11:32
Re: Set timer inside a textdraw - by TheToretto - 29.09.2018, 11:53
Re: Set timer inside a textdraw - by Zeus666 - 29.09.2018, 12:12
Re: Set timer inside a textdraw - by Zeus666 - 29.09.2018, 12:40
Re: Set timer inside a textdraw - by d3Pedro - 29.09.2018, 13:21
Re: Set timer inside a textdraw - by Zeus666 - 29.09.2018, 13:23
Re: Set timer inside a textdraw - by UFF - 29.09.2018, 15:02
Re: Set timer inside a textdraw - by Zeus666 - 29.09.2018, 15:06
Re: Set timer inside a textdraw - by UFF - 29.09.2018, 15:21
Re: Set timer inside a textdraw - by Zeus666 - 29.09.2018, 16:07

Forum Jump:


Users browsing this thread: 2 Guest(s)