Timer not counting
#2

Код:
forward SecUpdate();
public SecUpdate()
{
    new bool:endLoop;
    MzCheck();
    if(endLoop) return 1; // add endLoop somewhere you want!
    for(new i = 1; i <= TOTALMAFIA; i++)
    {
        if(MZSafeTime[i] > 0)
        {
            MZSafeTime[i]--;
            if(MZSafeTime[i] == 60 || MZSafeTime[i] == 120)
            {
                format(string,127,"[F] Jums atlikusas %d sekundes lai sagatavotos",MZSafeTime[i]);
                SendFMes(MafiaInfo[i][mNapad],COLOR_LIGHTRED,string);
                SendFMes(MafiaInfo[i][mFraction],COLOR_LIGHTRED,string);
            }
            if(MZSafeTime[i] == 0)
            {
                format(string,127,"[F] Sagatavosanas laiks ir beidzies! Kad zona nebus tavas mafijas speletaji, ta tiks pretiniekiem!");
                SendFMes(MafiaInfo[i][mNapad],COLOR_LIGHTRED,string);
                SendFMes(MafiaInfo[i][mFraction],COLOR_LIGHTRED,string);
            }
        }
    }
}
Reply


Messages In This Thread
Timer not counting - by RageCraftLV - 02.07.2016, 11:31
Re: Timer not counting - by SetPlayerNameTag - 02.07.2016, 11:49
Re: Timer not counting - by RageCraftLV - 02.07.2016, 14:26
Re: Timer not counting - by RageCraftLV - 03.07.2016, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)