Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ulx.respawn(calling_ply,target_plys)
- local affected_plys = {}
- for k,v in pairs(target_plys) do
- if (not v:Alive()) and (v:Team() == 1 or v:Team() == 2) then
- table.insert(affected_plys,v)
- else
- ULib.tsayError(calling_ply,v:Nick().." is spectator or alive!")
- end
- end
- for k,v in pairs(affected_plys) do
- v:SetPData("SpawnAllow","true")
- v:Spawn()
- end
- ulx.fancyLogAdmin( calling_ply, "#A возродил #T", affected_plys)
- end
- local respawn = ulx.command("Команады Тюрьмы", "ulx respawn", ulx.respawn, {"!respawn","!rs"},true)
- respawn:addParam{ type=ULib.cmds.PlayersArg }
- respawn:defaultAccess( ULib.ACCESS_SUPERADMIN )
- respawn:help( "Возродить игрока" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement