Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //... return name;
- }...//
- BPF::reloginho()
- {
- new str[100];
- new
- ano,
- mes,
- dia,
- horas,
- minutos,
- segundos;
- getdate(ano, mes, dia);
- gettime(horas, minutos, segundos);
- horas=horas-4;
- if(horas>=20)
- getdate(ano, mes, dia);dia--;
- if(horas<20)
- getdate(ano, mes, dia);
- if(HV == 4)
- {
- horas--;
- }
- if(CH > 0)
- {
- horas+=CH;
- }
- if(CM > 0)
- {
- minutos+=CM;
- }
- if(CS > 0)
- {
- segundos+=CS;
- }
- if(horas > 23)
- {
- horas = 0;
- dia++;
- }
- format( str, sizeof(str), "~w~%02d:%02d:%02d",horas, minutos, segundos);
- TextDrawSetString(Reloginho2, str);
- format( str, sizeof str, "~w~%02d/%02d/%d",dia, mes, ano);
- TextDrawSetString(Reloginho1, str);
- if(horas == 7 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
- if(horas == 8 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
- if(horas == 13 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
- if(horas == 14 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
- if(horas == 19 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
- if(horas == 20 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
- if(horas == 1 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
- if(horas == 2 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
- if(horas == 4 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para o Gmx diário se prepare!"); }
- if(horas == 5 && minutos == 0 && segundos == 1)
- {
- MensagemDesligou = 1;
- getdate(year, month, day);
- new string[128];
- format(string, sizeof(string), "AdmCmd: GMX dado as 5 Horas Automatico");
- BPFLogs("gmxlog", string);
- printf(string);
- foreach(Player, i)
- {
- if(IsPlayerConnected(i))
- {
- PlayerLogado[i] = 0;
- OnPlayerSave(i);
- SaveObjects(i);
- LogadoSV[i] = 0;
- //gPlayerLogged[i] = 0;
- }
- }
- GameModeInitExitFunc();
- }
- SyncTime();
- return true;
- }
- //...static stock ChatAdmin(striing[],nivel)...//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement