I would like to be able to kill a human player, but the command doesn't work. Can you help me please?
This is the code I'm using :
Syntax: Select all
from engines.server import engine_server
[...]player_list = PagedMenu(title='Liste des joueurs', select_callback=joueurselect)
for player in PlayerIter('human'):
player_list.append(PagedOption(player.name, player.name))
main_menu.close()
player_list.send(index)
def joueurselect(menu, player_index, option):
engine.server.server_command('kill ' + option.value)
And this is the message :
Is it a bad using of "kill" command?
Thanks for your help