Search the Community
Showing results for tags 'timers'.
-
Version 1.2.0
96 downloads
A straightforward timer plugin that displays customizable countdown timers in the game interface (top right corner). Perfect for coordinating events, announcing restarts, or managing custom countdowns. Now supoorts up to 3 timers at the same time. Features: Custom timer display in the game UI Automatic server restart timer (optional) Console and chat command support Customizable UI (colors, text size, transparent background) Supports up to 3 active timers Integrated permission system Targeted timers: you can display timers only to specific players or groups Commands: Chat /timer --> Opens the UI /timer start seconds "text" - Starts a new timer for all players /timer start seconds "text" steamid @group - Starts a timer for a spefic player or group (you can use both steamid and group in the same argument) --> /timer start 600 "Event start" 76561198086436188 @VIP (it will show to the VIP group and the specified player) /timer stop - Stop current timer Rcon timer.start seconds "text" - Starts a new timer for all players timer.start seconds "text" steamid @group - Starts a timer for a spefic player or group (you can use both steamid and group in the same argument) --> timer.start 600 "Event start" 76561198086436188 @VIP (it will show to the VIP group and the specified player) timer.stop console Configuration: Customizable background color Customizable text color Adjustable font size Optional transparent backgroun Toggleable automatic restart timer { "BackgroundColor": "#CC000000", "TextColor": "#FFFFFF", "EnableRestartTimer": true, "TransparentBackground": false, "FontSize": 20 } Developer Hooks // Called when a timer starts void OnTimerStarted(int seconds, string text) // Called when a timer is manually stopped void OnTimerStopped() // Called when a timer naturally completes void OnTimerCompleted() Public Methods for Other Plugins // Start a new timer bool StartTimerFromPlugin(int seconds, string text = "", List<string> steamIds = null, List<string> groups = null) // Example: var timersPlugin = plugins.Find("Timers"); var steamIds = new List<string> { "76561198123456789" }; var groups = new List<string> { "vip" }; timersPlugin?.Call("StartTimerFromPlugin", 60, "Event", steamIds, groups); // Stop the current timer bool StopTimerFromPlugin() // Example: timersPlugin?.Call("StopTimerFromPlugin"); // Get remaining time TimeSpan? GetRemainingTime() // Example: var remaining = timersPlugin?.Call("GetRemainingTime") as TimeSpan?; // Get current timer text string GetCurrentTimerText() // Example: var text = timersPlugin?.Call("GetCurrentTimerText") as string; Support: For any support request: [email protected]Free- 2 comments
-
- 1
-
-
Version 0.0.2
194 downloads
SimpleEvents allows scheduling console commands for in-game events and separate timed commands. Features: - Schedule custom console commands. - Schedule console commands for in-game events. - Configure independent timed commands. - Choose between sequential or simultaneous execution of timed commands. - Define minimum and maximum intervals for timed commands. - Set minimum player count requirements for timed commands. - In-game events, such as Patrol Helicopter, CH47 Helicopter, Cargo Ship, Cargo Plane, Easter Egg Hunt, Santa's Sleigh, Halloween Hunt, and Bradley APC. Default Config: { "Custom Commands Execution Mode | 1 = Sequentially, 2 = Simultaneously, 3 = Disabled": 1, "Custom Commands": [ { "Commands": [ "", "" ], "Min Interval (s)": 60, "Max Interval (s)": 120, "Min Players": 0 }, { "Commands": [ "", "" ], "Min Interval (s)": 180, "Max Interval (s)": 300, "Min Players": 0 } ], "Patrol Helicopter": { "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/prefabs/npc/patrol helicopter/patrolhelicopter.prefab" }, "CH47 Helicopter": { "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/prefabs/npc/ch47/ch47scientists.entity.prefab" }, "Cargo Ship": { "Noninitial LootRound Min Players": [], "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/content/vehicles/boats/cargoship/cargoshiptest.prefab" }, "Cargo Plane": { "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/prefabs/npc/cargo plane/cargo_plane.prefab" }, "Easter Egg Hunt": { "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/prefabs/misc/easter/egghunt.prefab" }, "Santa's Sleigh": { "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/prefabs/misc/xmas/sleigh/santasleigh.prefab" }, "Halloween Hunt": { "Commands": [ "", "" ], "Min Players": 0, "Prefab": "assets/prefabs/misc/halloween/halloweenhunt.prefab" }, "Bradley APC": { "Commands": null, "Min Players": 0, "Prefab": null } }Free