mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-13 15:14:34 +00:00
SA Admin bug
This commit is contained in:
parent
cccbd9aa9f
commit
e1069b6284
1 changed files with 10 additions and 10 deletions
|
|
@ -345,18 +345,18 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
||||||
if(%arg1.isAdmin) // target is already an admin
|
if(%arg1.isAdmin) // target is already an admin
|
||||||
return; // can't vote to admin an admin!
|
return; // can't vote to admin an admin!
|
||||||
|
|
||||||
if(%client.isAdmin && !%client.isSuperAdmin) // our pal is an admin (no superadmins)
|
if(%isAdmin)
|
||||||
{
|
{
|
||||||
if(!$Host::AllowAdmin2Admin)
|
if(!%client.isSuperAdmin && !$Host::AllowAdmin2Admin)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else // not an admin
|
else
|
||||||
{
|
{
|
||||||
if(!$host::allowadminplayervotes) // admin player votes are NOT enabled
|
if(!$host::allowadminplayervotes) // admin player votes are NOT enabled
|
||||||
return; // can't do that pal
|
return; // can't do that pal
|
||||||
|
|
||||||
%msg = %client.nameBase @ " initiated a vote to admin player " @ %arg1.nameBase @ ".";
|
%msg = %client.nameBase @ " initiated a vote to admin player " @ %arg1.nameBase @ ".";
|
||||||
}
|
}
|
||||||
|
|
||||||
case "BanPlayer":
|
case "BanPlayer":
|
||||||
if(%client.isSuperAdmin && !%arg1.isSuperAdmin) // we're a super admin, and our target isn't a super admin
|
if(%client.isSuperAdmin && !%arg1.isSuperAdmin) // we're a super admin, and our target isn't a super admin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue