Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.45 KB | None | 0 0
  1. import minqlx
  2.  
  3. class test(minqlx.Plugin):
  4.  
  5.     def __init__(self):
  6.         self.add_hook("player_spawn", self.handle_player_spawn)
  7.         #self.set_cvar("g_startingHealth", "-500")
  8.  
  9.     def handle_player_spawn(self, player):
  10.         #print(dir(player), flush=True)
  11.         '''
  12.        ['__class__', '__contains__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_id', '_info', '_invalidate', '_name', '_steam_id', '_userinfo', '_valid', 'addadmin', 'addmod', 'addscore', 'all_players', 'ammo', 'armor', 'autoaction', 'autohop', 'ban', 'center_print', 'channel', 'clan', 'clean_name', 'colors', 'connection_state', 'country', 'cvars', 'demote', 'drop_holdable', 'flight', 'handicap', 'headmodel', 'health', 'holdable', 'id', 'ip', 'is_alive', 'is_frozen', 'kick', 'model', 'mute', 'name', 'noclip', 'ping', 'position', 'powerups', 'predictitems', 'privileges', 'put', 'qport', 'score', 'slap', 'slay', 'slay_with_mod', 'state', 'stats', 'steam_id', 'switch', 'team', 'tell', 'tempban', 'unmute', 'update', 'valid', 'velocity', 'weapon', 'weapons']
  13.        '''
  14.         # here will try to set the player health... e.g. someyhing like:
  15.         # exec("rcon slap" + str(player.id) + " -100")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement