[CODE]function ulx.respawn ( calling_ply, target_ply )
for i=1, #target_ply do
local v = target_ply[ i ]
if (v:Team() == TEAM_GUARD_DEAD) then
v:SetTeam(TEAM_GUARD)
v:Alive
elseif (v:Team() == TEAM_PRISONER_DEAD) then
v:SetTeam(TEAM_PRISONER)
v:Alive
ulx.fancyLogAdmin( calling_ply, true, "#A respawned #T", target_ply )
end
end
end
local respawn = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn, "!respawn", false )
respawn:addParam{ type=ULib.cmds.PlayersArg }
respawn:defaultAccess( ULib.ACCESS_ADMIN )
respawn:help ( "Respawns a player" )[/CODE]
This is for ULX
Sorry, you need to Log In to post a reply to this thread.