public PlaylistManager() : base() { Manager = this; //if (Call<int>("getDvarInt", "playlist_enabled", 1) == 0) if (_.GetDvarInt("playlist_enabled", 1) == 0) { return; } OnNotify("match_ending_very_soon", () => { SayNextMap(); }); OnInterval(10000, () => { ApplyVariables(Rules); if (GameType != null) { ApplyVariables(GameType.Rules); } if (Playlist != null) { ApplyVariables(Playlist.Rules); } return true; }); }
public PlaylistManager() : base() { Manager = this; //if (Call<int>("getDvarInt", "playlist_enabled", 1) == 0) if (_.GetDvarInt("playlist_enabled", 1) == 0) { return; } OnNotify("match_ending_very_soon", () => { SayNextMap(); }); OnInterval(10000, () => { ApplyVariables(Rules); if (GameType != null) { ApplyVariables(GameType.Rules); } if (Playlist != null) { ApplyVariables(Playlist.Rules); } return(true); }); }