Relogging - 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: Relogging (
/showthread.php?tid=512622)
Relogging -
iBots - 11.05.2014
Hey,how could i make it reload player files and let him login again if he writes /bugged,i tried to do it but nothing happens ,how can i make it?
Re: Relogging -
Smileys - 11.05.2014
if someone's bugged/desynced the server/client wont recieve any request from the server/client; forcing the player to /q and manually relog.
Re: Relogging -
Calgon - 11.05.2014
This is not a wise idea, because a player could make some sort of transaction (like /pay) then use /bugged to save over and prevent the money from being deducted.
The best thing you could do is force a player to re-connect, a tutorial can be found here:
https://sampforum.blast.hk/showthread.php?tid=178575 (not 100% sure this still works)
Re: Relogging -
iBots - 11.05.2014
i just said /bugged as an example but is it possible to reload the player file?like it spawns him again?
Re: Relogging -
Calgon - 11.05.2014
Quote:
Originally Posted by iBots
i just said /bugged as an example but is it possible to reload the player file?like it spawns him again?
|
Read what I said. It doesn't matter what the command is called, this problem will still occur.
Re: Relogging -
brent94 - 11.05.2014
Quote:
Originally Posted by Calgon
Read what I said. It doesn't matter what the command is called, this problem will still occur.
|
I'm sure something could be thrown together if functions like
GetPlayerNetworkStats are used, but I do agree, it's better just to reconnect the player.
Re: Relogging -
ball - 11.05.2014
You can't do this - its impossible. You can check the player's packetloss or how many messages he sent to the server recently or something like this, then compare amounts and if amount will be low - kick the player with probably packetloss.
Re: Relogging -
iBots - 11.05.2014
i have seen a system in a server,it's for admins,when they go on duty they automaticly reconnect without /q and connecting again...how?i tried the one you told me to do but didnt work,calgon
Re: Relogging -
Beckett - 11.05.2014
Do you have any idea of what you're talking about?
Quote:
Originally Posted by Calgon
|
This trick doesn't work anymore due to security updates.
Re: Relogging -
Calgon - 12.05.2014
Quote:
Originally Posted by iBots
i have seen a system in a server,it's for admins,when they go on duty they automaticly reconnect without /q and connecting again...how?i tried the one you told me to do but didnt work,calgon
|
This is not due to a /bugged command, it is an admin duty system. I've done something like it in
Vortex 1.