Hi Guys hopefully you can help me...
I am trying to make a 'warn' command that will !slaynr and !adduser to group Warning 1 so that my staff can easily punish and keep track of rule breakers on my server I was going to just try and mash the UserAdd command and Slaynr command together but I cant even get a user to go into a specific group before adding the slay part.
Any advice would be great.
This is all I have so far
(Gamemode is TTT)
---------------------
function ulx.warn( calling_ply, target_ply, group_name )
local userInfo = ULib.ucl.authed[ target_ply:UniqueID() ]
local id = ULib.ucl.getUserRegisteredID( target_ply )
if not id then id = target_ply:SteamID() end
ULib.ucl.addUser( id, userInfo.allow, userInfo.deny, Warning 1 )
ulx.fancyLogAdmin( calling_ply, "Warning 1 #T", target_ply, group_name )
end
local warn = ulx.command( CATEGORY_NAME, "ulx warn", ulx.warn )
warn:addParam{ type=ULib.cmds.PlayerArg }
adduser:defaultAccess( ULib.ACCESS_SUPERADMIN )
warn:help( "Slays the player next round and marks them as warned." )
--------------------