Timer Bug?
#3

Just increase game text time and it should be outside loop

pawn Код:
forward StartMap(mode);
public StartMap(mode)
{
    new string[4];
    switch(mode)
    {
        case DM:
        {
            if( --Countdown[DM] > 0 ) valstr(string, Countdown[DM]);
            else
            {
                string = "Go!";
                Countdown[DM] = 4;
                KillTimer(Vehicle_Freeze[DM]);
                KillTimer(Start_Map[DM]);
            }
            for(new i = GetPlayerPoolSize(); i > -1; i--)
                if(pMode[i] == DM && GameTextForPlayer(i, string, 2000, 4)) // mode == DM and player is connected
                {
                    if(Countdown[DM] == 4) // start
                        TogglePlayerControllable(i, true);
                }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Timer Bug? - by NoteND - 07.03.2019, 18:58
Re: Timer Bug? - by RIDE2DAY - 08.03.2019, 00:46
Re: Timer Bug? - by Jefff - 08.03.2019, 01:17
Re: Timer Bug? - by NoteND - 08.03.2019, 06:53

Forum Jump:


Users browsing this thread: 1 Guest(s)