Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile( "shared.lua" )
- AddCSLuaFile( "cl_init.lua" )
- include( 'shared.lua' )
- local function BlockSuicide(ply)
- ply:ChatPrint("You Are Not Allowed To Use The Console Command 'Kill' It Causes The Player To No Longer Have A Weapon At Spawn.")
- return false
- end
- hook.Add( "CanPlayerSuicide", "BlockSuicide", BlockSuicide )
- function GM:PlayerSetModel( ply )
- ply:SetModel( "models/player/leet.mdl" )
- end
- function GM:PlayerDeath(attacker)
- local WepList =
- {
- 'tfa_luger',
- 'tfa_deagle',
- 'weapon_three',
- 'tfa_ragingbull',
- 'tfa_glock',
- 'tfa_colt1911',
- 'tfa_hk45',
- 'tfa_sig_p229r',
- 'tfa_mp5',
- 'tfa_bizonp19',
- 'tfa_kac_pdw',
- 'tfa_magpulpdr',
- 'tfa_mp5sd',
- 'tfa_honeybadger',
- 'tfa_mp9',
- 'tfa_bf4_ak5c',
- 'tfa_bf4_asval',
- 'tfa_bf4_aek971',
- 'tfa_bf4_ak12',
- 'tfa_vector',
- 'tfa_bf4_338',
- 'tfa_mp7',
- 'm9k_dragunov',
- 'm9k_intervention',
- 'm9k_m24',
- 'm9k_barret_m82',
- 'm9k_aw50',
- 'm9k_sl8',
- 'm9k_svt40',
- 'm9k_svu',
- 'm9k_spas12',
- 'm9k_usas',
- 'm9k_remington870',
- 'm9k_remington7615p',
- 'm9k_m249lmg',
- 'm9k_pkm',
- 'm9k_dbarrel',
- 'm9k_1887winchester',
- 'm9k_1897winchester',
- 'm9k_ares_shrike'
- }
- if (level == #WepList) then
- for k, v in pairs( player.GetAll() ) do
- v:StripWeapons()
- v:SetNWFloat('level', 1)
- v:Spawn()
- return
- end
- end
- attacker:StripWeapon(WepList[level])
- attacker:Give(WepList[level+1])
- attacker:GiveAmmo(weapons.Get(WepList[level+1]).Primary.Ammo)
- attacker:SetNWFloat('level', attacker:GetNWFloat('level') +1)
- end
- function GM:PlayerLoadout(pl)
- if ( pl:GetNWFloat('level',1 ) ) then
- pl:Give("tfa_luger")
- pl:GiveAmmo(969, "pistol")
- end
- end
- function GM:PlayerSpawn( ply )
- self.BaseClass:PlayerSpawn( ply )
- ply:SetGravity( 1, 900 )
- ply:SetMaxHealth( 100, true )
- ply:SetWalkSpeed( 165 )
- ply:SetRunSpeed( 355 )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement