Garry's Mod Leaks

[LEAK] Admin suit Config and Armor suits integration.

Submitted by dadafdgff, , Thread ID: 237639

Thread Closed
14-03-2022, 03:07 AM
This post was last modified: 14-03-2022, 08:59 PM by dadafdgff
#1
Armor suits integrationhttps://www.mediafire.com/folder/3u6ruv64wd3sg/armor_suits_integration

Admin Suit confighttps://www.mediafire.com/folder/j1z9k9ubpchyz/lords_suit_powers

If you would like a suit to be an admin suit set[font=Consolas, "Courier New", monospace]WearingAdminsuit = true[/font]
[font=Consolas, "Courier New", monospace]Armor:Add({
Name = "Admin Suit",
Length = ( 99999999 * 1 ),
Description = "",
Model = "models/player/combine_super_soldier.mdl",
Entitie = "armor_as",
Price = 10000000,
OnGive = function( ply )
ply:SetArmor( 100 ) -- Put w/e health you want here.
ply:SetHealth( 5000 ) -- Put w/e Armor you want here.
ply:SetRunSpeed( ply:GetWalkSpeed( 2 ) )
ply._oldwalkspped = ply:GetWalkSpeed( 2 )
ply._oldRunSpeed = ply:GetRunSpeed()
ply:SetRunSpeed( ply:GetRunSpeed() + ( ply:GetRunSpeed() * 2 ) )
[font=Consolas, "Courier New", monospace]WearingAdminsuit[/font] = true
end,
OnRemove = function( ply )
[font=Consolas, "Courier New", monospace]WearingAdminsuit[/font] = false
ply:SetArmor( 0 )
ply:SetHealth( 100 )
if ( ply._oldwalkspped ) then
ply:SetRunSpeed( ply._oldwalkspped )
ply._oldwalkspped = nil
end
if ( ply._oldRunSpeed ) then
ply:SetRunSpeed( ply._oldRunSpeed )
ply._oldRunSpeed = nil
end
end,
})[/font]

Users browsing this thread: 1 Guest(s)