04.01.2012, 07:09
Hello everyone,
Im trying to create a Voting system. This system system should be callled on a Function TimeLeft10()
The Idea is:
1. Whenever a battle ends in my TDM GM. It scores++ and Shows lot of clientMessage's.
2. I want it should pop up a Dialog with three list items contianing Map name's. (LS,SF,LV)
3. When player select's one option lets say LS , It will increase one vote for LS.
4. It will work for all the player's and will count vote's for all the three Maps. The Map with highest vote's will be executed with [SendRconCommand(changemode LS) - Example]
Summary on what i want to make is:
1. Dialog with three items pop up for every player on TimeLeft10() public function.
2. When player select's one item it should increase one vote for the map.
3. Check vote's and Load the GM with highest vote's.
Post me suggestions. You can post Small code's for dialog's ,item's ,varibale for vote's,etc? I've figured some ways to code it but i cant think of any idea that exactly should i check the vote's ? and Change the GM?
Help will be appreciated by adding reputation.
Thanks
BMiaa
Im trying to create a Voting system. This system system should be callled on a Function TimeLeft10()
The Idea is:
1. Whenever a battle ends in my TDM GM. It scores++ and Shows lot of clientMessage's.
2. I want it should pop up a Dialog with three list items contianing Map name's. (LS,SF,LV)
3. When player select's one option lets say LS , It will increase one vote for LS.
4. It will work for all the player's and will count vote's for all the three Maps. The Map with highest vote's will be executed with [SendRconCommand(changemode LS) - Example]
Summary on what i want to make is:
1. Dialog with three items pop up for every player on TimeLeft10() public function.
2. When player select's one item it should increase one vote for the map.
3. Check vote's and Load the GM with highest vote's.
Post me suggestions. You can post Small code's for dialog's ,item's ,varibale for vote's,etc? I've figured some ways to code it but i cant think of any idea that exactly should i check the vote's ? and Change the GM?
Help will be appreciated by adding reputation.
Thanks
BMiaa