OnGameModeExit - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnGameModeExit (
/showthread.php?tid=571368)
OnGameModeExit -
Banditukas - 18.04.2015
Can i save variables in this callback? I mean
Update blabla SET blabla='%d'", Miaumiau );
Re: OnGameModeExit -
J4Rr3x - 18.04.2015
Yes, of course you can.
OnGameModeExit work like OnPlayerDisconnect, but you need to remember OnGameModeExit it's called when you shutdown/close the console and not when you restart server.
Re: OnGameModeExit -
Azula - 18.04.2015
yea
PHP код:
public OnGameModeExit()
{
print("Gamemode ended.");
return 1;
}
This callback is called when a gamemode ends.