HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4.  
  5.  
  6. #define PLUGIN "Dupla frag idõre"
  7. #define VERSION "1.0"
  8. #define AUTHOR "HunGamer"
  9.  
  10. new bool:aktiv = false;
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR);
  15. register_event("DeathMsg","hook_death","a");
  16. set_task(60.0, "check", 0, _, _, "b");
  17. }
  18. public check()
  19. {
  20. new hour, minute, second;
  21. time(hour, minute, second);
  22. if(22 <= hour && 7 > hour)
  23. aktiv=true
  24. else
  25. aktiv=false
  26.  
  27.  
  28. return PLUGIN_HANDLED;
  29. }
  30. public hook_death()
  31. {
  32. if(!aktiv)
  33. return PLUGIN_CONTINUE;
  34.  
  35. new killer = read_data(1);
  36. set_user_frags(killer, get_user_frags(killer) + 1);
  37.  
  38. return PLUGIN_CONTINUE;
  39.  
  40. }