def hackinfo_player(player):
info = "%s #%s (%s) has an accuracy of: " % (
player.name, player.player_id, player.address[0])
info += accuracy_player(player, False)
ratio = player.ratio_kills / float(max(1, player.ratio_deaths))
info += " Kill-death ratio of %.2f (%s kills, %s deaths)." % (
ratio, player.ratio_kills, player.ratio_deaths)
info += " %i kills in the last %i seconds." % (
player.get_kill_count(), KILL_TIME)
info += " %i headshot snaps in the last %i seconds." % (
player.get_headshot_snap_count(), HEADSHOT_SNAP_TIME)
return info
评论列表
文章目录