Is it posible?[create comand for relog]
#1

Is it possible to create command to
auto-relog(state similar to : when player lost connection and get message Trying to reconnect ... Conecting...)

Player connected without need to quit game ?
Reply
#2

Yea /gmx
Reply
#3

For a Player How Gmx(playerid)
Reply
#4

you mean if a player lost connection like trying to reconnet ... On that time ? or after he logged on?
Reply
#5

I what to use command for exemple:

/relog [playerid]

Then player lost connection to server and client automatic try to reconnect and connect.

why if player have some sort of player bug (not see this ... or why only me is not working this)

Then just use this command and in a half second be reconnected.

Quote:

On that time ? or after he logged on?

Any time in game when player feel a need for it
Reply
#6

As far as i know it's not possible cause player can simply quite and re-connect
Reply
#7

Had a look through some threads, have a look at a few of these options:
https://sampforum.blast.hk/showthread.php?tid=150393

EDIT: If that wasn't what you were really looking for, look at this:
https://sampforum.blast.hk/showthread.php?tid=178575
Reply
#8

No i do not want to crash it player then he need go out of game and do manual connect.

Is the way to choke one player connection to client think the server lost connection to him?
Reply
#9

Quote:
Originally Posted by JernejL
Посмотреть сообщение
This is fairly simple thing to achieve, so i did not include code.

Basically, sometimes you want a player to reconnect - say if a player pauses and you wish to kick him & have him reconnect when he returns, or for various other reasons, so this is how it works:

1. In code, rcon ban the ip, but DON'T KICK the player
2. The player will timeout, in onplayerdisconnect unban the ip that was banned for him - remember that getplayerip doesnt work in onplayerdisconnect, so store the value elsewhere.
3. Player's client will lose connection and attempt to auto-reconnect afterwards.
Exactly what i need thank you BenzoAMG
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)