Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions mod/scripts/vscripts/takyon_votekick.nut
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ bool function CommandKick(entity player, array<string> args){
return false
}

// starting the player vote
if(playerKickVoteYesNames.len() == 0){ // no vote going yet
// start vote by setting vars
playerKickVoteYesNames.append(player.GetPlayerName())
Expand All @@ -94,11 +93,16 @@ bool function CommandKick(entity player, array<string> args){
for(int i = 0; i < GetPlayerArray().len(); i++){
SendHudMessageBuilder(GetPlayerArray()[i], player.GetPlayerName() + PLAYER_WANTS_TO_KICK_PLAYER + fullPlayerName + HOW_TO_KICK, 255, 200, 200)
}
CheckIfEnoughKickVotes()
}
else{
Chat_ServerPrivateMessage(player, "\x1b[38;2;220;0;0m" + ALREADY_VOTE_GOING + fullPlayerName + HOW_TO_KICK, false)
if(playerVotedForKick == fullPlayerName){
CommandYes(player, [])
}
else{
Chat_ServerPrivateMessage(player, "\x1b[38;2;220;0;0m" + ALREADY_VOTE_GOING + fullPlayerName + HOW_TO_KICK, false)
}
}
CheckIfEnoughKickVotes()
}
return true
}
Expand Down