fix exit signal
add function resdef
add function add_player_by_name
add functions new_player, get_player_by_name
update users and login