Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PLUGIN = PLUGIN
- PLUGIN.name = "Auto weapon raise"
- PLUGIN.author = "Adrim"
- PLUGIN.description = "Various shit code of wep raise."
- local WeaponRaise = {
- ["weapon_357"] = true,
- ["weapon_pistol"] = true,
- ["weapon_crossbow"] = true,
- ["weapon_crowbar"] = true,
- ["weapon_flaregun_beta"] = true,
- ["weapon_frag"] = true,
- ["weapon_physcannon"] = true,
- ["weapon_iceaxe_beta"] = true,
- ["weapon_immolator_beta_alt"] = true,
- ["weapon_immolator_beta"] = true,
- ["weapon_ar2"] = true,
- ["weapon_rpg"] = true,
- ["weapon_slam"] = true,
- ["weapon_shotgun"] = true,
- ["weapon_smg1"] = true,
- ["weapon_stunstick"] = true,
- ["weapon_cb_hopwire"] = true,
- ["weapon_medkit"] = true,
- ["swb_knife"] = true,
- [""] = true,
- }
- function PLUGIN:PlayerWeaponChanged(player,wep)
- if(SERVER)then
- local class = wep:GetClass()
- local base = wep.Base or ""
- if string.find(base,"simple") or string.find(base,"arccw") or WeaponRaise[class] then
- timer.Simple( 0.05, function()
- player:SetWepRaised( true )
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment