HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <sourcemod>
  2.  
  3. Handle gh_AllTalk = INVALID_HANDLE;
  4.  
  5. public Plugin myinfo =
  6. {
  7. name = "endgame-alltalk",
  8. author = "Nexd",
  9. description = "https://forums.alliedmods.net/showthread.php?t=313852",
  10. version = ""
  11. };
  12.  
  13. public void OnPluginStart()
  14. {
  15. HookEvent("cs_win_panel_match", Event_EndMatch);
  16. HookEvent("halftime_start", Event_HalfTime, EventHookMode_Pre);
  17. HookEvent("round_start", Event_RoundStart);
  18.  
  19. gh_AllTalk = FindConVar("sv_full_alltalk");
  20. SetConVarBool(gh_AllTalk, false);
  21. }
  22.  
  23. public Action Event_HalfTime(Event event, const char[] name, bool dontBroadcast)
  24. {
  25. SetConVarBool(gh_AllTalk, true);
  26. }
  27.  
  28. public Action Event_RoundStart(Event event, const char[] name, bool dontBroadcast)
  29. {
  30. SetConVarBool(gh_AllTalk, false);
  31. }
  32.  
  33. public Action Event_EndMatch(Event event, const char[] name, bool dontBroadcast)
  34. {
  35. SetConVarBool(gh_AllTalk, true);
  36. }