Created
May 15, 2016 17:34
-
-
Save x0rnn/945400a73035353d06f085c4a2f28bb3 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
#gives grappling hook to player | |
import minqlx | |
class ghook(minqlx.Plugin): | |
def __init__(self): | |
self.add_command("hook", self.cmd_hook) | |
self.goto = {} | |
def cmd_hook(self, player, msg, channel): | |
if player.team == "spectator": | |
player.tell("You must join the game first to use this command.") | |
return minqlx.RET_STOP_EVENT | |
if player.steam_id not in self.goto: | |
self.goto[player.steam_id] = player.score | |
player.weapons(gh=True) | |
player.tell("^6Your time will not count, unless you kill yourself.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment