OnGameModeExit
From SA-MP Wiki
Description:
This callback is called when a gamemode ends, either through 'gmx', the server being shut down, or GameModeExit.
This callback has no parameters.
Return Values:
- 0 - Will prevent other filterscripts from receiving this callback.
- 1 - Indicates that this callback will be passed to the next filterscript.
- It is always called first in gamemode.
Notes |
|
Example Usage:
public OnGameModeExit() { print("Gamemode ended."); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnGameModeInit: Called when a gamemode starts.
- OnFilterScriptExit: Called when a filterscript is unloaded.
- OnFilterScriptInit: Called when a filterscript is loaded.
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- GameModeExit: Exit the current gamemode.