Ulysses
General => Off-Topic => Topic started by: Lewis 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
-
Why would you need respawn for sandbox? ???
-
So if people dont respawn themselfs and in trouble i can respawn them
-
This thread should give you everything you need
http://forums.ulyssesmod.net/index.php?topic=5549.0 (http://forums.ulyssesmod.net/index.php?topic=5549.0)
-
doesnt work gives me a error and im mixed up and dont even know what im doing.............
-
Taken from my coderhire addon:
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." )