TActivePlayer.OnVoteMap
property OnVoteMap Access mode: RW Event handler type: TOnVoteMapEvent Event handler declaration: procedure (Player: TActivePlayer; Map: string)
Description
Event property called when a player hits F11 or F12 during a map vote.
Example
Example makes players say "Voted!" when they hit F11/F12.
procedure OnVoteMessage(Player: TActivePlayer; Map: string);
begin
Player.Say('Voted!');
end;
var
i: Byte;
begin
for i:=1 to 32 do
Players[i].OnVoteMap := @OnVoteMessage;
end.