• Cinema SWEP Issue
    1 replies, posted
I am currently having an issue with not being able to replace one of the loadout SWEPs I have set on my cinema server. I have changed lines 59 to 64 of cinema/gamemode/player_class/player_lobby.lua with [lua]function PLAYER:Loadout() self.Player:RemoveAllAmmo() self.Player:SwitchToDefaultWeapon() self.Player:Give("weapon_popcorn") end[/lua] When I then try to replace weapon_popcorn using a pointshop script (that is equipped), it doesn't get replaced and the only way to replace it is to host the pointshop weapon and re-equip it. The pointshop item code is: [lua]ITEM.Name = 'Candyfloss' ITEM.Price = 30000 ITEM.Model = 'models/buckres/candyfloss.mdl' ITEM.WeaponClass = 'weapon_candyfloss' ITEM.SingleUse = false function ITEM:OnEquip(ply) if GetConVarString("gamemode") == "cinema" then ply:StripWeapon("weapon_popcorn") ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) else return end end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) ply:Give("weapon_popcorn") end[/lua] The gamemode is cinema so the GetConVarString line shouldn't really matter. Thanks in advance for any help :)
Bumpity Bumpity bump bump
Sorry, you need to Log In to post a reply to this thread.