Is there a way to revive players?
Often people will join and kill random players during a round of Trouble in Terrorist Town.
I slay those people and want to respawn the people who got rdmed.
Is there a ulx plugin or any way to respawn players after they die?
Thanks in advance.
There are ways to do it, but it's inadvisable
Eg, someone gets rdmed, a traitor kills a few people and burns the bodies, you revive the rdmed person, they kill the traitor who'd have otherwise got off
Well, I would take all of those precautions into account before I'd revive them.
Also when we mess around on a themepark map and a ride glitches, it's horrendous.
Is there any way to respawn players after death?
[QUOTE=DrJenkins;34695564]You'd need to youse v get you r target and lol[/QUOTE]
Blegh
[lua]--[[
****Respawn a player (For TTT)
--]]
function ulx.respawn( calling_ply, target_plys )
for _,v in pairs(target_plys) do
v:SetTeam( TEAM_TERROR )
v:Spawn()
end
ulx.fancyLogAdmin( calling_ply, "#A has respawned #T!", target_plys )
end
local strip = ulx.command( "TTT", "ulx respawn", ulx.respawn, "!respawn" )
strip:addParam{ type=ULib.cmds.PlayersArg }
strip:defaultAccess( ULib.ACCESS_ADMIN )
strip:help( "Respawn the target(s)." )[/lua]
Untested
Seems to work, though I get the error "You do not have access to this command" with the
highest admin position *superadmin*
When I use rcon to run the command, I get this error: "[@addons\ulx_respawn\lua\ulx\modules\respawn.lua:5] bad argument #1 to 'pairs' (table expected, got nil)"
[QUOTE=Apozen;34695825]Seems to work, though I get the error "You do not have access to this command" with the
highest admin position *superadmin*
When I use rcon to run the command, I get this error: "[@addons\ulx_respawn\lua\ulx\modules\respawn.lua:5] bad argument #1 to 'pairs' (table expected, got nil)"[/QUOTE]
Just tested, it works fine for me
The only thing I'd advise is to check you copied it properly, ensure you haven't denied your rank access to the command, and ensure your ULX version is up to date
I've not worked with ULX before today, so I can't tell you whether there was any recent changes in syntax that'd cause this not to work
Running version 3.53 :( ulib 2.42 doesn't work.
I was having this problem too. Unfortunatley, The Ulysses Mod download page is VERY misleading. The versions on the download page or for GMod 12, and there is no way to directly convert them to work with GMod 13's syntax. You can find the latest SVN version for GMod 13 [URL="http://forums.ulyssesmod.net/index.php/topic,5786.0.html"]here[/URL] (it is still in beta but it works fine for me). Good luck! Feel free to contact me if you need help using SVN.
[code]local CATEGORY_NAME = "TTT"
function ulx.respawn( ply, targs )
for _,v in pairs(targs) do
v:SetTeam( TEAM_TERROR )
v:Spawn()
end
ulx.fancyLogAdmin( ply, true, "#A has respawned #T!", targs )
end
local spawn = ulx.command( "TTT", "ulx respawn", ulx.respawn, "!spawn" )
spawn:addParam{ type=ULib.cmds.PlayersArg }
spawn:defaultAccess( ULib.ACCESS_SUPERADMIN )
spawn:help( "Respawn the target(s)." ) [/code]
[IMG]http://steamcommunity.com/sharedfiles/filedetails/?id=110632114[/IMG]
Fixed & Tested
[QUOTE=gemmono2;38632353][code]local CATEGORY_NAME = "TTT"
function ulx.respawn( ply, targs )
for _,v in pairs(targs) do
v:SetTeam( TEAM_TERROR )
v:Spawn()
end
ulx.fancyLogAdmin( ply, true, "#A has respawned #T!", targs )
end
local spawn = ulx.command( "TTT", "ulx respawn", ulx.respawn, "!spawn" )
spawn:addParam{ type=ULib.cmds.PlayersArg }
spawn:defaultAccess( ULib.ACCESS_SUPERADMIN )
spawn:help( "Respawn the target(s)." ) [/code]
[IMG]http://steamcommunity.com/sharedfiles/filedetails/?id=110632114[/IMG]
Fixed & Tested[/QUOTE]
That doesn't even work, you idiot.
[QUOTE=TheSpy7;38642906]That doesn't even work, you idiot.[/QUOTE]
Works fine for me.
[QUOTE=NinjaS;38644090]Works fine for me.[/QUOTE]
Does it work if you try to set the team to Traitor?
Traitors aren't managed by teams.
[QUOTE=.\\Shadow};38645238]Traitors aren't managed by teams.[/QUOTE]
So how do you respawn as Traitor?
Edit: Nevermind, I see now and I feel like an idiot >.>
-Snip-
Where does this go? I Need the same for my server.
There is a ULX command pack on steam workshop, download use gmad to extract it, bam. Got it all (repsawn is in there) on phone currently, cant get links
Go into your ulx folder if you have one, get the owner of the server to go into \garrysmod\addons\ulx\lua\ulx\modules\sh\util.lua and go all the way to the bottom (Scroll all the way down and then under the 2 ends) and paste this code [url]http://pastebin.com/Qypn2NVS[/url]
Sorry, you need to Log In to post a reply to this thread.