def auto_respawn(self, message): '''Respawns the player in 5 seconds if suicide or team-killed''' # Add the player to the respawn list in 3 seconds delayedname(4, 'gg_elimination_respawn_%s' % self.userid, respawn_players.append, [self.userid]) # Send the player a message that they will be respawned soon ggPlayer(self.userid).msg(message, prefix=True)
def auto_respawn(self, message): '''Respawns the player in 5 seconds if suicide or team-killed''' # Add the player to the respawn list in 3 seconds delayedname(4, 'gg_elimination_respawn_%s' % self.userid, respawn_players.append, [self.userid]) # Send the player a message that they will be respawned soon ggPlayer(self.userid).msg(message, prefix=True)
def __init__(self, userid): '''Called when the class is first initialized''' # Store the player's base attributes self.userid = userid self.gg_player = ggPlayer(userid) self.eliminated = EliminatedPlayers() self.reconnect = False
def __init__(self, userid): '''Called when the class is first initialized''' # Store the player's base attributes self.userid = userid self.gg_player = ggPlayer(userid) self.eliminated = EliminatedPlayers() self.reconnect = False