mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
Oops
Fix for missing log entry
This commit is contained in:
parent
aff3b2b776
commit
5d7e9abbef
1 changed files with 3 additions and 2 deletions
|
|
@ -782,16 +782,17 @@ function DefaultGame::voteKickPlayer(%game, %admin, %client)
|
||||||
{
|
{
|
||||||
%team = %client.team;
|
%team = %client.team;
|
||||||
%totalVotes = %game.votesFor[%game.kickTeam] + %game.votesAgainst[%game.kickTeam];
|
%totalVotes = %game.votesFor[%game.kickTeam] + %game.votesAgainst[%game.kickTeam];
|
||||||
|
%cause = "(vote)";
|
||||||
if(%totalVotes > 0 && (%game.votesFor[%game.kickTeam] / %totalVotes) > ($Host::VotePasspercent / 100))
|
if(%totalVotes > 0 && (%game.votesFor[%game.kickTeam] / %totalVotes) > ($Host::VotePasspercent / 100))
|
||||||
{
|
{
|
||||||
kick(%client, %admin, %game.kickGuid);
|
kick(%client, %admin, %game.kickGuid);
|
||||||
%cause = "(vote)";
|
|
||||||
|
|
||||||
%key = "Passed";
|
%key = "Passed";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for ( %idx = 0; %idx < ClientGroup.getCount(); %idx++ )
|
|
||||||
|
for ( %idx = 0; %idx < ClientGroup.getCount(); %idx++ )
|
||||||
{
|
{
|
||||||
%cl = ClientGroup.getObject( %idx );
|
%cl = ClientGroup.getObject( %idx );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue