Random gamemode change help
#3

Quote:

----------------------------------
[22:29:48] Hot Room Loaded (TDM).
[22:29:48] ----------------------------------

[22:29:48] Number of vehicle models: 0
[22:31:28] [connection] **** requests connection cookie.
[22:31:29] [connection] incoming connection: ***id: 0
[22:31:30] [join] Face9000 has joined the server (0:1**)
[22:31:30] IsPlayerBanned called.
[22:35:26] Game Mode EXit return one executing

Did what you said, is calling but still server stuck at restart. This is the OnGameModeExit (name of the callback has been edited to fit the map settings):

Код:
public GameModeExitFunc(playerid)
{
    CallRemoteFunction("GMChange","");
   GameTextForAll("~y~Loading next mission ~n~ ~w~Please Wait....",5000,5);
    if(TeamBlueScore > TeamRedScore)
	{
	GameTextForAll("~w~Team ~b~Blue ~w~Won!", 4500, 4);
	}
	else if(TeamRedScore > TeamBlueScore)
	{
	GameTextForAll("~w~Team ~r~Red ~w~Won!", 4500, 4);
	}
	else if(TeamRedScore == TeamBlueScore)
	{
	GameTextForAll("~w~Mission Draw!", 4500, 4);
	}
    KillTimer(CheckScoreTimer);
    KillTimer(GameTimer);
    KillTimer(ScoreTimer);
    TextDrawHideForPlayer(playerid,Timer);
    
   	TextDrawHideForAll(TimeLeftTxd);
	TextDrawDestroy(TimeLeftTxd);
	TextDrawHideForAll(BTSTxd);
	TextDrawDestroy(BTSTxd);
	TextDrawHideForAll(RTSTxd);
	TextDrawDestroy(RTSTxd);
	print("Game Mode EXit return one executing");
	return 1;
}
GameModeExit function is called on OnGameModeInit (in the same script):

Код:
SetTimer("GameModeExitFunc", RoundTime, 0);
Reply


Messages In This Thread
Random gamemode change help - by Face9000 - 23.09.2015, 09:13
Re: Random gamemode change help - by BroZeus - 23.09.2015, 14:22
Re: Random gamemode change help - by Face9000 - 23.09.2015, 20:35
Re: Random gamemode change help - by BroZeus - 24.09.2015, 03:59
Re: Random gamemode change help - by Face9000 - 24.09.2015, 09:49
Re: Random gamemode change help - by Jefff - 24.09.2015, 15:22
Re: Random gamemode change help - by Face9000 - 25.09.2015, 09:37
Re: Random gamemode change help - by rappy93 - 25.09.2015, 12:14
Re: Random gamemode change help - by Face9000 - 26.09.2015, 10:18
Re: Random gamemode change help - by Face9000 - 29.09.2015, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)