Author Topic: Add function OnVoteMapEnd(Player:TActivePlayer; Map:tActiveMap):boolean;  (Read 1848 times)

0 Members and 1 Guest are viewing this topic.

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Plese add:
Code: [Select]
function OnVoteMapEnd(Player:TActivePlayer; Map:tActiveMap):boolean;
begin
Result:=true; Voting will be canceled and  will not change the map.
Result:=false; Map be changed.
end;

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
You can just count OnVoteMap calls with a reasonable timeout.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Why not add?

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
It's redundant, you can accomplish what it'd do yourself without sacrificing much. Also I'd add one more thing to take care of in case we decide to switch vote system to something else.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.