Advertisement
Guest User

Untitled

a guest
Sep 12th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. if (KRFUNC_GENUINE_NET >= 10 || halflife_time() >= 300)
  2. {
  3. log_to_file(KRFUNC_LOGFILE, "[Krond Functions %s] GENUINE: Eroare de licenta, fortam inchiderea serverului (%f secunde)", "1.6.3-r10", halflife_time());
  4. server_cmd("quit");
  5. server_cmd("exit");
  6. server_cmd("_QUIT");
  7. server_cmd("shutdown");
  8. server_cmd("_RESTART");
  9. server_exec();
  10. }
  11. else
  12. {
  13. if (KRFUNC_GENUINE_NET >= 5)
  14. {
  15. if (get_cvar_num("amx_krondfunctions_log_admin") == 1)
  16. {
  17. cmdadminchat_announce("GENUINE: Nu am putut contacta serverul de licenta, plugin-ul a fost dezactivat - schimba harta pentru reincercare.");
  18. }
  19. log_to_file(KRFUNC_LOGFILE, "[Krond Functions %s] Nu am putut contacta serverul de licenta pentru a verifica dreptul de utilizare a plugin-ului, acesta din urma fiind dezactivat.", "1.6.3-r10");
  20. set_fail_state("[Krond Functions] Nu am putut sa contactez serverul de licentiere, te rog schimba harta sau da un restart la server.");
  21. }
  22. }
  23. if (!task_exists(KFFUNC_GENUINE_NET_TASK, 0))
  24. {
  25. set_task(30.00, "KRFUNC_PUBLIC_GENUINEKROND_NET", KFFUNC_GENUINE_NET_TASK, "", 0, "b", 0);
  26. }
  27. }
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement