May 22, 2022, 06:11:42 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: [Server] Vote to end a map  (Read 1181 times)

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
[Server] Vote to end a map
« on: June 19, 2013, 03:38:09 pm »

Let's say you are on a server with 13 other players.
Host is away, you're all intensively fighting, on dkoth_sixties.
The match is 20 minutes long, but RED finally did it! And won the game.
It's time to vote for a map with map_voting! Everyone rushes the random vote room, because nobody wants cp_dirtbowl nor ctf_truefort.
The random map won the vote!
dkoth_sixties.
 D: x 14

This would never have happened with the VoteRoundEnd plugin!
Let the players on your server change the map by themselves using Lorgan's chat_v2!

Download / install
Download the attached file "voteroundend.gml" and place it in your Plugins folder, then Host a new game.
This doesn't work (and is even not needed) client-sided only.

Features
- This works with lorgan's chat v2
- Type commands in chat
- Anyone can start a vote to end the round
- Everyone can accept or refuse the map changing
- The 30 seconds time limit can be easily changed in the gml (first line: global.yb_voteroundend_timerMax = 30*30; the red number is the duration in seconds)
- The /help command gives you (little) information about the plugin and the commands

How to use
Type /voteroundend in chat, then type /yes or /no to vote!
Type /help to see the available commands!
Type /votecancel has host to cancel the vote!
Type /reset after saying /yes or /no to reset your vote!

Conflicts / dependencies
This will only work if you accept the chat_v2 server-sent plugin.
This only has been tested with v2.5.2 so far.
This might conflict with other chat-based command plugins (/votekick...)
This will only work if players have a brain.

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4904
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
    • arcticland
Re: [Server] Vote to end a map
« Reply #1 on: June 20, 2013, 12:01:51 am »

y u coding so messy?
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Server] Vote to end a map
« Reply #2 on: June 20, 2013, 07:48:01 am »

y u coding so messy?

Because no scripts?
No seriously, I have no idea. I have been looking at my code for an hour now, and all I think I could do to reduce it or make it clearer, is replacing like a dozen of lines only.
« Last Edit: June 20, 2013, 08:08:32 am by [FR]YB »
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: [Server] Vote to end a map
« Reply #3 on: June 20, 2013, 08:15:36 am »

execute_string can pass arguments IIRC
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

21Dan

  • Guest
Re: [Server] Vote to end a map
« Reply #4 on: June 20, 2013, 12:43:37 pm »

This dude's a genius.
Logged

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4904
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
    • arcticland
Re: [Server] Vote to end a map
« Reply #5 on: June 20, 2013, 06:10:19 pm »

Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Pages: [1]
 

Page created in 0.052 seconds with 37 queries.