• Custom pointshop weapons... Working ??
    6 replies, posted
So i have 19 custom weapon files one of the lua scripts looks like this. the weapons show up in the pointshop menu but when i try to buy it, it looks like its working but it's not in my inventory. PLz Help !! [CODE]ITEM.Name = 'Nailgun' ITEM.Price = 200 ITEM.Model = 'models/warz/melee/nailgun.mdl' ITEM.WeaponClass = 'weapon_nailgun' ITEM.SingleUse = true function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end[/CODE] [editline]1st January 2014[/editline] Also if someone could change this script around to make it so you only have to purchase the weapon once and you keep it forever.
Is weapon_nailgun even a real SWEP on your server or is it just a model? Also, change SingleUse to false if you want them to keep it permanently.
1.how do you make a SWEP 2.IK but i need to change the script below because you will prob still have it when holstered. [CODE]function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end[/CODE]
Holstered? And I'm not going to code an entire nailgun SWEP for you. Either find one or make a job on coderhire.
nonono ik i need something on the lines of function ITEM:OnHolster(ply) [editline]1st January 2014[/editline] O im srry this is a wep theres no holster xD [editline]1st January 2014[/editline] O im srry this is a wep theres no holster xD [editline]1st January 2014[/editline] what would happen if used the crossbow SWEP ?? weapon_crossbow [editline]1st January 2014[/editline] or weapon_crowbar
Those would work fine.
ok now it doesnt change the weapon is there any way i can make it remove the current Crowbar and replace it with the "Weapon"
Sorry, you need to Log In to post a reply to this thread.