Author Topic: Ulx Respawn how do i get it?  (Read 5810 times)

0 Members and 1 Guest are viewing this topic.

Offline Lewis

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Ulx Respawn how do i get it?
« on: April 19, 2014, 12:51:49 PM »
Dear helpers,
I need help with the spawn command for my sandbox server i searched around the internet but i only found trouble in terrorist town command but i need help with it can someone send me the downloader for ulx respawn??

Please!

Thanks
Lewis

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Ulx Respawn how do i get it?
« Reply #1 on: April 19, 2014, 01:41:31 PM »
Why would you need respawn for sandbox?  ???
Out of the Garry's Mod business.

Offline Lewis

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Ulx Respawn how do i get it?
« Reply #2 on: April 19, 2014, 01:50:21 PM »
So if people dont respawn themselfs and in trouble i can respawn them

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: Ulx Respawn how do i get it?
« Reply #3 on: April 19, 2014, 09:31:39 PM »
This thread should give you everything you need
http://forums.ulyssesmod.net/index.php?topic=5549.0

Offline Lewis

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Ulx Respawn how do i get it?
« Reply #4 on: April 20, 2014, 03:17:52 AM »
doesnt work gives me a error and im mixed up and dont even know what im doing.............

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: Ulx Respawn how do i get it?
« Reply #5 on: April 20, 2014, 04:54:03 AM »
Taken from my coderhire addon:
Code: [Select]
function ulx.forcerespawn( calling_ply, target_plys )

if GetConVarString("gamemode") == "terrortown" then
for k, v in pairs( target_plys ) do
if v:Alive() then
v:Kill()
v:SpawnForRound( true )
else
v:SpawnForRound( true )
end
end
else
for k, v in pairs( target_plys ) do
if v:Alive() then
v:Kill()
v:Spawn()
else
v:Spawn()
end
end
end

ulx.fancyLogAdmin( calling_ply, "#A respawned #T", target_plys )

end
local forcerespawn = ulx.command( "Utility", "ulx forcerespawn", ulx.forcerespawn, { "!forcerespawn", "!frespawn"} )
forcerespawn:addParam{ type=ULib.cmds.PlayersArg }
forcerespawn:defaultAccess( ULib.ACCESS_ADMIN )
forcerespawn:help( "Force-respawn a player." )