Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vec = Vector(math.random(0,255), math.random(0,255), math.random(0,255))
- local CATEGORY_NAME = "Essentials"
- function ulx.respawn( calling_ply, target_ply )
- if not target_ply:Alive() then
- target_ply:SetTeam(2)
- target_ply:Spawn()
- target_ply:SetPlayerColor(vec)
- target_ply:GenerateBystanderName()
- ulx.fancyLogAdmin(calling_ply, false, "#A respawned #T", target_ply)
- end
- end
- local respawn = ulx.command(CATEGORY_NAME, "ulx respawn", ulx.respawn, "!respawn", false)
- respawn:addParam({type = ULib.cmds.PlayerArg})
- respawn:defaultAccess(ULib.ACCESS_ADMIN)
- respawn:help("Respawns a dead player")
- //For murder only
- //Made by Zero
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement