Posts: 1,226
Threads: 217
Joined: Jan 2012
Reputation:
0
It depends if you are saving it or not.... Basically you can set it under OnPlayerDisconnect to 0.
If you ain't saving it then it is affective to it.. So when you restart the server as new yourvariable [MAX_PLAYERS];
It will automatically set it to 0 on restart.
Posts: 805
Threads: 75
Joined: Aug 2013
Reputation:
0
I see many people setting their variables back to 0 on OnGameModeExit, why?
EDIT: Even though they don't need to save them, they set them back to 0, i saw that in many gms posted in samp forums
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Ignorance, perhaps. However, I do think OnGameModeInit/OnGameModeExit are properly called in a filterscript. Filterscripts aren't unloaded during a gmx/changemode.