02.07.2016, 11:49
Код:
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); } } } }