Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

Spectate for admins


Recommended Posts

Paid admins need spectate for multiple reasons.

mainly becuase we will be killed if were on the oposite team.

Also if someone says (InsertNameHere) is breaking our cade as a human, but your a zombie. You can't see names as a zombie. But if you have spectate you can see what they are doing.

Edited by gameacid13
Link to comment
Share on other sites

Acknowledged, i'll try checking into this issue

 

At the moment, if it's inherent in the code of the program, there is nothing we can do unless soccer or kigen modifies it.

{
function ulx.votekick( calling_ply, target_ply, reason )
   if voteInProgress then
       ULib.tsayError( ply, "There is already a vote in progress. Please wait for the current one to end.", true )
       return
   end

   local msg = "Kick " .. target_ply:Nick() .. "?"
   if reason and reason ~= "" then
       msg = msg .. " (" .. reason .. ")"
   end

   ulx.doVote( msg, { "Yes", "No" }, voteKickDone, _, _, _, target_ply, time, calling_ply, reason )
   ulx.fancyLogAdmin( calling_ply, "#A started a votekick against #T", target_ply )
end
local votekick = ulx.command( CATEGORY_NAME, "ulx votekick", ulx.votekick, "!votekick" )
votekick:addParam{ type=ULib.cmds.PlayerArg }
votekick:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
votekick:defaultAccess( ULib.ACCESS_ADMIN )
votekick:help( "Starts a public kick vote against target." )
if SERVER then ulx.convar( "votekickSuccessratio", "0.6", _, ULib.ACCESS_ADMIN ) end -- The ratio needed for a votekick to succeed
if SERVER then ulx.convar( "votekickMinvotes", "2", _, ULib.ACCESS_ADMIN ) end -- Minimum votes needed for votekick
}

Edited by enigma#
Link to comment
Share on other sites

Votekick Source Unknown:

There's a few quick fixes anyone could implement until a proper solution is found, like a print line below the 'ulx.fancyLogAdmin' function, for example.

Or changing lines 490-492 of the above function in ulx\log.lua

if isDedicatedServer() then
    print( msg .. "\n" )
end

 

Makes it so anyone can look in console to see the source of the votekick. Temporarily lets people get proof of abuse regardless of admin presence.

 

Or something like this for a more permanent solution (untested):

ULib.tsay( _, string.format( "%s started a votekick against %s REASON: %s", calling_ply:Nick(), target_ply:Nick(), reason ), true )
ulx.logString( string.format( "%s started a votekick against %s REASON: %s", calling_ply:Nick(), target_ply:Nick(), reason ) )

Edited by ZCOM
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share