Ejemplo n.º 1
0
def _resetscrore_say_command(command, index, team_only=None):
    player = Player(index)
    if player.kills != 0 or player.deaths != 0: 
        player.kills = 0
        player.deaths = 0
        SayText2(strings['Resetscore']).send(player.index)
    else:
        SayText2(strings['Already']).send(player.index)

    return CommandReturn.BLOCK
Ejemplo n.º 2
0
def _resetscrore_say_command(command, index, team_only=None):
    player = Player(index)
    if player.kills != 0 or player.deaths != 0:
        player.kills = 0
        player.deaths = 0
        RESETSCORE_MSG.send(player.index)
    else:
        ALREADY_MSG.send(player.index)

    if command[0] in ini_config['private_commands'] or team_only is None:
        return CommandReturn.BLOCK