Onplayerdisconnect / ongamemodexit
#1

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.
Reply
#2

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.
Reply
#3

Okay, then I might better can save everything and after that crash the server, so players doesn't have to reconnect lol
Reply
#4

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...
Reply
#5

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
Reply
#6

Okay thanks, but for now it works good enough.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)