I'm going to preface this with 2 things:
1. Im entirely new to scripting in general. I have been toying with python (and SourcePython) for roughly 3 days
2. I have written a few things, but mainly just using SayCommand and having that execute a server_command
I need to make warmup last until SP tells it to stop i.e. "end_warmup" or "start_match"
I'm assuming i can do this with with the Tick System, and ideally the plugin wouldn't just make warmup last 999999999 minutes, but just be "warmup"
Any advice or similar source code is all I would need as I am a quick learner and eager to learn this so that I can stop asking questions :P
Thanks!
[CS:GO] Make Warmup last until stopped by SP
-
- Junior Member
- Posts: 27
- Joined: Wed Mar 16, 2016 5:56 pm
-
- Junior Member
- Posts: 27
- Joined: Wed Mar 16, 2016 5:56 pm
You can just use the server command to pause the timer and get the result in your second image.
Once you wish to unpause, just set it back to zero, and optionally, end the warmup immediately
Code: Select all
mp_warmup_pausetimer 1
Once you wish to unpause, just set it back to zero, and optionally, end the warmup immediately
Code: Select all
mp_warmup_pausetimer 0
mp_warmup_end
-
- Junior Member
- Posts: 27
- Joined: Wed Mar 16, 2016 5:56 pm
Source.Python scripting at its best
/id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
-
- Junior Member
- Posts: 27
- Joined: Wed Mar 16, 2016 5:56 pm
I guess Mahi saved me from making a fool of myself. It'd be much funnier if he came up with those cvars after somebody'd already implemented it programmatically.
/id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 15 guests