I have the spectator deathmatch addon in ttt. I want admins to be able to force people. I tried this code it doesn't work how can I fix it. local CATEGORY_NAME = "Deathmatch"
function ulx.deathmatch( calling_ply, target_ply, command )
if not target_ply:Alive() then
v:ConCommand("say !dm")
ulx.fancyLogAdmin( calling_ply, true, "#A Joined Deathmatch", target_ply )
end
end
local deathmatch = ulx.command( CATEGORY_NAME, "ulx deathmatch", ulx.deathmatch, "!ulxdm", true )
deathmatch:addParam{ type=ULib.cmds.PlayerArg }
deathmatch:defaultAccess( ULib.ACCESS_ADMIN )
deathmatch:help( "Makes player join deathmatch" )