Difference between revisions of "TGame.StartVoteKick"

From Soldat Community Wiki
Jump to: navigation, search
(Description)
 
Line 4: Line 4:
 
==Description==
 
==Description==
 
Starts a vote against target player ID. 'Reason' will be displayed as the vote's reason.<br>
 
Starts a vote against target player ID. 'Reason' will be displayed as the vote's reason.<br>
 +
Note that this will NOT trigger TActivePlayer.OnVoteKickStart!
  
 
==Example==
 
==Example==

Latest revision as of 14:36, 24 November 2014

procedure StartVoteKick(ID: Byte; Reason: string)
 ID: ID of a voted player
 Reason: votekick reason

Description

Starts a vote against target player ID. 'Reason' will be displayed as the vote's reason.
Note that this will NOT trigger TActivePlayer.OnVoteKickStart!

Example

Game.StartVoteKick(1,'Spamming');