HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /* Fisier descarcat de pe www.eXtreamCS.com ! */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <engine>
  6.  
  7. #define ACCESS ADMIN_SLAY
  8.  
  9. new Float:g_LastRestart[33]
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin("Restart","2.0","Alka")
  14. register_clcmd("say /restart","say_restart",ACCESS)
  15. }
  16.  
  17. public say_restart(id)
  18. {
  19. if(!(get_user_flags(id) & ACCESS))
  20. return
  21.  
  22. new Float:Time = halflife_time()
  23. if(Time - g_LastRestart[id] < 10.0)
  24. return
  25.  
  26. g_LastRestart[id] = Time
  27.  
  28. server_cmd("sv_restart 1")
  29. client_print(0, print_chat, "A jatek ujrainditva!!!")
  30. }