PlayerUnknowns

[C++] Comenzi automate

Dec 6th, 2017
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. //@Source/Game/main.cpp
  2. //1.)   [RO] Cauta:
  3. s_dwProfiler[PROF_HEARTBEAT] += (get_dword_time() - t);
  4. //2.)   [RO] Adaugă mai jos:
  5.     #ifdef AUTOMATIC_COMMANDS
  6.         if (!(pulse % (passes_per_sec * TIME_AUTOCLEAR_SERVER)))
  7.         {
  8.             if (g_bAuthServer)
  9.                 std::system("cd /usr/home/game/administrare_server && curata_s_b.sh");
  10.         }
  11.     #endif
  12. //@Source/Common/lenght.h
  13. //3.)   [RO] Adaugă la sfârșit:
  14.     #ifdef AUTOMATIC_COMMANDS
  15.         TIME_AUTOCLEAR_SERVER = 86400, // Timpul in secunde;
  16.     #endif
  17. //@Source/Common/service.h
  18. //4.)   [RO] Adaugă la sfârșit:
  19. #define AUTOMATIC_COMMANDS
  20.  
  21. //[INFO] Atentie trebuie adaptat smylink-ul in functie de serverfiles.
Advertisement
Add Comment
Please, Sign In to add comment