Help, I'm confused in OnGameModeExit
#1

Hi guys, I'm trying to add Code 2 Police Lights into my gamemode. However, I'm always stucked at OnGameModeExit part, and I'm confused. How can I add this
Quote:
Код:
        KillTimer(FlashTimer);
        for (new i = 0; i < MAX_VEHICLES; i++)
        {
                DestroyObject(obj[i]);
                DestroyObject(obj2[i]);
        }
        return 1;
Into my OnGameModeExit?

Quote:
Код:
public OnGameModeExit()
{
	for(new i; i< MAX_PLAYERS; i++)
	{
		if(!IsPlayerConnected(i)) continue;
		TextDrawHideForPlayer(i, Zones[i]);
	}
	for(new p; p<2; p++) KillTimer(TimerKill[p]);
	return 1;
}
Thanks
Reply


Messages In This Thread
Help, I'm confused in OnGameModeExit - by Uberanwar - 12.08.2013, 05:12
Re: Help, I'm confused in OnGameModeExit - by semaj - 12.08.2013, 05:33
Re: Help, I'm confused in OnGameModeExit - by Pottus - 12.08.2013, 05:36
Re: Help, I'm confused in OnGameModeExit - by Uberanwar - 12.08.2013, 05:47

Forum Jump:


Users browsing this thread: 1 Guest(s)