How do I count the time? [SERVER]
#7

pawn Код:
forward Round();
public Round()
{
    if(GameSeconds || GameMinutes)
    {
        GameSeconds--;
        if(GameSeconds <= -1)
        {
            GameMinutes--;
            GameSeconds=59;
        }
        new TimeString[14];
        format(TimeString,sizeof(TimeString),"%02d:%02d",GameMinutes,GameSeconds);
        TextDrawSetString(rclock,TimeString);
        if(GameMinutes == 0 && GameSeconds == 0)
        {
            for(new i; i < MAX_PLAYERS; i++)
            {
                GameTextForAll("~r~Round Ended!",5000,3);
                TogglePlayerControllable(i,0);
                SH = SetTimer("ShowHonours",1000,true);
                KillTimer(rcount);
            }
        }
    }
    return 1;
}
Set the timer to 1second, delete the unnecessary stuff, it was from my GM. :P
Reply


Messages In This Thread
How do I count the time? [SERVER] - by blackwave - 27.12.2010, 23:04
Re: How do I count the time? [SERVER] - by WillyP - 27.12.2010, 23:07
Re: How do I count the time? [SERVER] - by Retardedwolf - 27.12.2010, 23:09
Re: How do I count the time? [SERVER] - by blackwave - 27.12.2010, 23:18
Re: How do I count the time? [SERVER] - by Babul - 27.12.2010, 23:20
Re: How do I count the time? [SERVER] - by blackwave - 27.12.2010, 23:30
Re: How do I count the time? [SERVER] - by WillyP - 27.12.2010, 23:34
Re: How do I count the time? [SERVER] - by [03]Garsino - 27.12.2010, 23:36
Re: How do I count the time? [SERVER] - by Lorenc_ - 27.12.2010, 23:49
Re: How do I count the time? [SERVER] - by blackwave - 27.12.2010, 23:58

Forum Jump:


Users browsing this thread: 1 Guest(s)