• Help with a ulx command?
    3 replies, posted
I have a command to respawn people when they die on deathrun and the only problem is they don't spawn with a crowbar. I can' figure the code out for this. Help anyone? This is the code: [CODE]function ulx.respawn( calling_ply, target_plys ) local affected_plys = {} for k,v in pairs(target_plys) do if !v:Alive() then v:Spawn() table.insert(affected_plys, v) end end ulx.fancyLogAdmin( calling_ply, "#A spawned #T", affected_plys ) end local respawn = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn, "!respawn" ) respawn:addParam{ type=ULib.cmds.PlayersArg } respawn:defaultAccess( ULib.ACCESS_ADMIN ) respawn:help( "Respawns target(s)." )[/CODE]
[url]http://wiki.garrysmod.com/page/Player/Give[/url]
This looks [i]very[/i] familiar... [url]http://facepunch.com/showthread.php?t=1428358[/url]
Thank you. It works!
Sorry, you need to Log In to post a reply to this thread.