SA-MP Forums Archive
a few questions - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: a few questions (/showthread.php?tid=87521)



a few questions - Mowgli - 20.07.2009

I have a few scripting questions and it wuld be good if someone could answer in same format as i ask...so, ye,, thanks!


1)how do i set a GM to a 10 minute timer, and at the end of the 10 minute timer it end's the GM and goes to the next GM on the list (According to the Server.cfg)

2)How do i make a team balancer with 2 teams?


er, ye thats pretty much it for now, so thanks if you can help!


Re: a few questions - Klutty - 20.07.2009

1:

pawn Код:
//top
forward GMX();

//OnGameModeInit
SetTimer("GMX", 600000,1); //change the 1 to 0 if you dont want it to repeat

//anywhere
public GMX()
{
    GameModeExit();
}



Re: a few questions - Mowgli - 20.07.2009

wont it repeat anyway after it restarts the gamemode?


Re: a few questions - Klutty - 20.07.2009

Quote:
Originally Posted by Mowgli
wont it repeat anyway after it restarts the gamemode?
Not sure, test


Re: a few questions - Mowgli - 20.07.2009

Alrighty roo


THanks for that..