Skip to content

Instantly share code, notes, and snippets.

@x0rnn
Created May 15, 2016 17:34
Show Gist options
  • Save x0rnn/945400a73035353d06f085c4a2f28bb3 to your computer and use it in GitHub Desktop.
Save x0rnn/945400a73035353d06f085c4a2f28bb3 to your computer and use it in GitHub Desktop.
#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