SA-MP Forums Archive
Creating rounds - 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: Creating rounds (/showthread.php?tid=492373)



Creating rounds - Blunt - 03.02.2014

Ive began scripting a new gamemode and the idea of it includes rounds, but I'm really not sure on how to go about implementing or using any methods to do so in rounds into a team death match/deathmatch type mode.

A round is something like this. Example (Round 1 begins, after 5 minutes or all players are dead and spectating the round would end, and restart as Round 2), if you do not understand then don't hesitate in asking below.

If anyone could help me with this, please reply below and whoever it is i'll add you into the credits and hit you up a few rep points as appreciation, thank you guys and girls.



AW: Creating rounds - Nero_3D - 03.02.2014

Just call the restart code after 5 min by a timer otherwise call the restart code if all died and destroy the timer


Re: Creating rounds - Lordzy - 03.02.2014

Here are some ideas:
1) Run a global timer for rounds, you can also do it by giving IDs to the rounds.
2) On each player's death, check the remaining player count on the dead player's team (Using a loop).
3) Allow the player to either spectate the killer or random players.
4) When the players on a team goes completely 0, let the round to complete.
5) Or the same if the timer gets finished and if players still remains.
6) When the round is either completed or when a team wins, toggle player's spectating and it will let you in a spectating condition. You can show up the results and run a timer to start the next round.

I've just given the ones what I've felt now according to what you've mentioned:
Quote:

A round is something like this. Example (Round 1 begins, after 5 minutes or all players are dead and spectating the round would end, and restart as Round 2), if you do not understand then don't hesitate in asking below.