Is it posible?[create comand for relog] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is it posible?[create comand for relog] (
/showthread.php?tid=411457)
Is it posible?[create comand for relog] -
Azazelo - 29.01.2013
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 ?
Re: Is it posible?[create comand for relog] -
M3mPHi$_S3 - 29.01.2013
Yea /gmx
Re: Is it posible?[create comand for relog] -
Azazelo - 29.01.2013
For a Player

How Gmx(playerid)
Re: Is it posible?[create comand for relog] -
M3mPHi$_S3 - 29.01.2013
you mean if a player lost connection like trying to reconnet ... On that time ? or after he logged on?
Re: Is it posible?[create comand for relog] -
Azazelo - 29.01.2013
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
Re: Is it posible?[create comand for relog] -
M3mPHi$_S3 - 29.01.2013
As far as i know it's not possible cause player can simply quite and re-connect
Re: Is it posible?[create comand for relog] -
Threshold - 29.01.2013
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
Re: Is it posible?[create comand for relog] -
Azazelo - 29.01.2013
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?
Re: Is it posible?[create comand for relog] -
Azazelo - 29.01.2013
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