Last active
February 4, 2017 00:48
-
-
Save cstewart90/ee0142244496d257d083 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import minqlx | |
class allowkill(minqlx.Plugin): | |
def __init__(self): | |
self.add_hook("map", self.handle_map) | |
self.add_hook("game_start", self.handle_game_start) | |
self.add_hook("game_end", self.handle_game_start) | |
def handle_map(self, map_name, factory): | |
self.set_cvar("g_allowKill", "1") | |
def handle_game_start(self, data): | |
self.set_cvar("g_allowKill", "0") | |
def handle_game_end(self, data): | |
self.set_cvar("g_allowKill", "1") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment