CATEGORY_NAME "My Ulx Stuff"
------------------------------Reset------------------------------
function ulx.reset( calling_ply, target_ply )
if target_ply:IsFrozen() then -- Checks if target is frozen
ULib.tsayError ( calling_ply, v:Nick() .. " That boi is cold / frozen use !unfreeze to warm him up!"
if target_ply:Alive() then
target_ply:Kill() -- Kill the player
if not target_ply:Alive() then
target_ply:Spawn() -- Respawns the player
ulx.fancyLogAdmin( calling_ply, true "#a respawned #t"
end
end
local reset = ulx.command( CATEGORY_NAME, "ulx reset", ulx.reset, "!reset" )
reset:addParam{ type=ULib.cmds.PlayersArg }
reset:defualtAccess( ULib.ACCESS_ADMIN )
reset:help( "resets the selected target. " )