• Jailbreak Respawn Command
    3 replies, posted
So I'm trying to make a Jailbreak Respawn command, but it doesn't spawn them in. So I was wanting to know how to make it work. Thanks for any help. [CODE]--[[ --------------------------------------------------------------------------- ULX Respawn Command --------------------------------------------------------------------------- --]] function ulx.respawn( calling_ply, target_plys ) for _,v in pairs(target_plys) do v:Spawn() end ulx.fancyLogAdmin( calling_ply, "#A has respawned #T", target_plys ) end local strip = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn, "!respawn" ) strip:addParam{ type=ULib.cmds.PlayersArg } strip:defaultAccess( ULib.ACCESS_SUPERADMIN ) strip:help( "Respawn the target(s)." ) --[[ --------------------------------------------------------------------------- ULX Prisoner Respawn Command --------------------------------------------------------------------------- --]] function ulx.prespawn( calling_ply, target_plys ) for _,v in pairs(target_plys) do v:SetTeam( TEAM_PRISONER ) v:Spawn() end ulx.fancyLogAdmin( calling_ply, "#A has respawned #T", target_plys ) end local strip = ulx.command( CATEGORY_NAME, "ulx prespawn", ulx.prespawn, "!prespawn" ) strip:addParam{ type=ULib.cmds.PlayersArg } strip:defaultAccess( ULib.ACCESS_SUPERADMIN ) strip:help( "Respawn the target(s) as Prisoner(s)." ) --[[ --------------------------------------------------------------------------- ULX Guard Respawn Command --------------------------------------------------------------------------- --]] function ulx.grespawn( calling_ply, target_plys ) for _,v in pairs(target_plys) do v:SetTeam( TEAM_GUARD ) v:Spawn() end ulx.fancyLogAdmin( calling_ply, "#A has respawned #T", target_plys ) end local strip = ulx.command( CATEGORY_NAME, "ulx grespawn", ulx.grespawn, "!grespawn" ) strip:addParam{ type=ULib.cmds.PlayersArg } strip:defaultAccess( ULib.ACCESS_SUPERADMIN ) strip:help( "Respawn the target(s) as Guard(s)." )[/CODE]
Are you getting any errors? Can you be more descriptive? What Jailbreak are you running?
No I am not getting any errors, all that works is it says in chat "RickyBGamez has respawned SOME PERSON", and for the grespawn and prespawn it changes there team, it doesn't actually respawn them. I am using a old version of Jailbreak (I found on face punch, which I can't find anymore)
Did you tried v:KillSilent()?
Sorry, you need to Log In to post a reply to this thread.