Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
Hi there,
Whenever a players connection times out while they're modding their vehicle, when they reconnect they will have the menu still open.
If for example a server uses 'OnVehicleMod' and checks if the modder is in interior 0, it will ban them, thinking they're using cheats.
I have trailed and tested this method and confirmed it before posting here.
Posts: 521
Threads: 20
Joined: Jan 2016
Reputation:
0
Hmmm , can you explain more, can't understand ?
Veh mod ? ban them ? why
Posts: 2,938
Threads: 162
Joined: May 2010
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Closing the menu on Disconnect is pointless because this only happens for connection timeouts, so when the server notices it the connection isnt existing anymore.
Also you can only close specific Menus, so it's not possible to close a client-sided menu.
Your best bet is checking if the player was in a modshop and then lost connection. Then you can show a warning message to the player when he reconnects, which tells him to press F and that abusing this bug is not tolerated. Or put him back in a vehicle and teleport him into a modshop.
Posts: 109
Threads: 18
Joined: Dec 2011
Reputation:
0
Sorry, I know this is old. But I wanted to let you know how I fixed this bug within my script.
Inside onplayerdisconnect I log the reason.
If the reason was a timeout, I save it in my sql table.
I have a variable at the top of my script called noban.
Inside onplayerconnect, before anything else happens, I look to see if the field "timeout" = 1.
If so, I set the field to 0, toggle noban for the player to 1. In my cheat detection area, if noban > 0 it does nothing, therefore they won't get banned.
Then I send them a message telling them they need to press f to continue. Once that is done, I toggle them controllable, set noban to 0, and then the script resumes as if they just logged in as normal.