TActivePlayer.OnVoteKick

From Soldat Community Wiki
Revision as of 08:24, 30 July 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property OnVoteKick
 Access mode: RW
 Event handler type: TOnVoteKickEvent
 Event handler declaration: procedure (Player, Victim: TActivePlayer)

Description

Event property called when a player hits F11 or F12 during a kick vote.

Example

Example makes players say "Voted!" when they hit F11/F12.

function OnVoteMessage(Player: TActivePlayer; Map: string): Boolean;
begin
  Player.Say('Voted!');
end;

var 
  i: Byte;
begin
  for i:=1 to 32 do
    Players[i].OnVoteKick := @OnVoteMessage;
end.