Joriku
Working in the mines, need something?
Hi,
I know nothing about C++, sadly.
How would I force a player to disconnect upon death?
The reason is that once my character is dead, the onLogin script is not taking place which is going to re-add level up to 120. This does not happen unless the player manually re-logs.
I tried using player:remove() inside player_death but it gave no results.
Trying to add a force disconnection when the player is dead for onLogin scripts to take place.
So, instead of removePlayer. Is there a way to force disconnection upon the player? (c++ wise)
This happens with removePlayer
Using disconnect();
Gives this and the onLogin event takes place, player is re-added onto 120.
However, this is simply not a enter click to re-enter the game, so death after death will become annoying. Is there a better way of using this to force the onLogin function to take place?
Like a force logout instead?
I know nothing about C++, sadly.
How would I force a player to disconnect upon death?
The reason is that once my character is dead, the onLogin script is not taking place which is going to re-add level up to 120. This does not happen unless the player manually re-logs.
I tried using player:remove() inside player_death but it gave no results.
Trying to add a force disconnection when the player is dead for onLogin scripts to take place.
So, instead of removePlayer. Is there a way to force disconnection upon the player? (c++ wise)
This happens with removePlayer
Using disconnect();
Gives this and the onLogin event takes place, player is re-added onto 120.
However, this is simply not a enter click to re-enter the game, so death after death will become annoying. Is there a better way of using this to force the onLogin function to take place?
Like a force logout instead?
Last edited: