Onplayerdisconnect / ongamemodexit -
Roel - 06.09.2012
Hello, i have a simple question, might someone of you know it.
When i use the GMX function sometimes my player get bugged when he is connecting again.
When I use exit it isn't because he have to relog.
I was wondering, is onplayerdisconnected called when I use gmx??
Answer is Yes, I already found. But,
Can it be that the server gmx start the server if there are still some functions running from the disconnect?
Because my onplayersave is a large process, and it only happends sometimes, and when the player connects his status is still reset after loading it.
Re: Onplayerdisconnect / ongamemodexit -
ddnbb - 06.09.2012
I dont think so, but i cant say for sure. But anyway GMX is making some problems, and i think its bugged, thats why i never use that function.
Re: Onplayerdisconnect / ongamemodexit -
Roel - 06.09.2012
Okay, then I might better can save everything and after that crash the server, so players doesn't have to reconnect lol
Re: Onplayerdisconnect / ongamemodexit -
ddnbb - 06.09.2012
Quote:
Originally Posted by Roel
Okay, then I might better can save everything and after that crash the server, so players doesn't have to reconnect lol
|
Yup, crashing the server is the best option for that.
EDIT: But i think some players still gotta reconnect, as they get "Server didnt respond" or "Youre banned form the server."

SAMP glitch...
Re: Onplayerdisconnect / ongamemodexit -
CROSS_Hunter - 06.09.2012
GMX function doesnt call OnPlayerDisconnect its a RCON command that almost can be called to crash the server which means a direct restart you can make a test:
1.Get 2 players to ur server
2.Play A bit
3.Get some score
4.use the GMX function
5.Both of your score is gone
I am Pretty Sure your OnPlayerDisconnect CallBack saves the Player Stats when he disconnects.. so all in all as i said GMX function doesnt call OnPlayerDisconnect
Re: Onplayerdisconnect / ongamemodexit -
Roel - 06.09.2012
Okay thanks, but for now it works good enough.