Difference between revisions of "TGame.StartVoteKick"
(Created page with " '''''procedure StartVoteKick(ID: Byte; Reason: string)''''' ID: ID of a voted player Reason: votekick reason ==Description== Starts a vote to kick a player<br> ==Example...") |
(→Description) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Reason: votekick reason | Reason: votekick reason | ||
==Description== | ==Description== | ||
− | Starts a vote | + | 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== | ||
<syntaxhighlight lang="pascal"> | <syntaxhighlight lang="pascal"> | ||
− | StartVoteKick(1,'Spamming'); | + | Game.StartVoteKick(1,'Spamming'); |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:TGame]] | [[Category:TGame]] |
Latest revision as of 13: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');