mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-13 23:24:34 +00:00
Wrong spot
This commit is contained in:
parent
a6fe4aa346
commit
35811e33f8
1 changed files with 6 additions and 6 deletions
|
|
@ -259,12 +259,6 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
||||||
switch$(%typeName)
|
switch$(%typeName)
|
||||||
{
|
{
|
||||||
case "VoteKickPlayer":
|
case "VoteKickPlayer":
|
||||||
if($Host::TournamentMode && !$Host::AllowPlayerTournamentModeVotekick) // Dont allow Votekicks in Tournament Mode
|
|
||||||
{
|
|
||||||
messageClient(%client, "", "\c2No votekicks in Tournament Mode.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(%client == %arg1) // client is trying to votekick himself
|
if(%client == %arg1) // client is trying to votekick himself
|
||||||
return; // Use the leave button instead, pal.
|
return; // Use the leave button instead, pal.
|
||||||
|
|
||||||
|
|
@ -278,6 +272,12 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
||||||
}
|
}
|
||||||
else // Player is voting to kick
|
else // Player is voting to kick
|
||||||
{
|
{
|
||||||
|
if($Host::TournamentMode && !$Host::AllowPlayerTournamentModeVotekick) // Dont allow Votekicks in Tournament Mode
|
||||||
|
{
|
||||||
|
messageClient(%client, "", "\c2No votekicks in Tournament Mode.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(%arg1.isAdmin) // target is an admin
|
if(%arg1.isAdmin) // target is an admin
|
||||||
{
|
{
|
||||||
messageClient(%client, "MsgClient", "\c2You cannot vote to kick "@%arg1.nameBase@", "@(%arg1.sex $= "Male" ? "he" : "she")@" is an admin!");
|
messageClient(%client, "MsgClient", "\c2You cannot vote to kick "@%arg1.nameBase@", "@(%arg1.sex $= "Male" ? "he" : "she")@" is an admin!");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue