Difference between revisions of "TOnVoteKickStartEvent"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "==Description== Type used by TActivePlayer.OnVoteKick as an event handler type. ==Declaration== procedure (Player, Victim: TActivePlayer) Player: player currently...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
Type used by [[TActivePlayer.OnVoteKick]] as an event handler type.
+
Type used by [[TActivePlayer.OnVoteKickStart]] as an event handler type.
  
 
==Declaration==
 
==Declaration==
  procedure (Player, Victim: [[TActivePlayer]])
+
  function (Player, Victim: [[TActivePlayer]]; Reason: string): Boolean;
  Player: player currently voting
+
  Player: player starting a vote
  MVictim: player that is being voted
+
  Victim: player that is being voted
 +
  Reason: reasoning behind the voting
 +
  Result: if TRUE, the vote won't be started
  
 
[[Category:Types]]
 
[[Category:Types]]

Latest revision as of 10:47, 31 July 2013

Description

Type used by TActivePlayer.OnVoteKickStart as an event handler type.

Declaration

function (Player, Victim: TActivePlayer; Reason: string): Boolean;
 Player: player starting a vote
 Victim: player that is being voted
 Reason: reasoning behind the voting
 Result: if TRUE, the vote won't be started