Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: soldat-game on August 05, 2016, 10:47:46 am

Title: Add function OnVoteMapEnd(Player:TActivePlayer; Map:tActiveMap):boolean;
Post by: soldat-game on August 05, 2016, 10:47:46 am
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;
Title: Re: Add function OnVoteMapEnd(Player:TActivePlayer; Map:tActiveMap):boolean;
Post by: Falcon` on August 05, 2016, 11:02:54 am
You can just count OnVoteMap calls with a reasonable timeout.
Title: Re: Add function OnVoteMapEnd(Player:TActivePlayer; Map:tActiveMap):boolean;
Post by: soldat-game on August 05, 2016, 11:30:18 am
Why not add?
Title: Re: Add function OnVoteMapEnd(Player:TActivePlayer; Map:tActiveMap):boolean;
Post by: Falcon` on August 05, 2016, 02:03:06 pm
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.