• Help with adding Weapon Skins to pointhsop
    4 replies, posted
So im almost done with my murder server last things i wanted to add are knife skins and deagle skins. Almost everything works fine BUT the thing is: ITEM.Name = 'Knife Web' ITEM.Price = 2000 ITEM.Model = 'models/weapons/v_huntweb.mdl' ITEM.WeaponClass = 'huntweb' ITEM.SingleUse = false function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) end function ITEM:OnEquip(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end so with this you just spawn with the knife, it doesent matter if youre a murder or a bystander. How can i fix that AND how can i replace the standard knife that you spawn with the custom one if you bought it ? Hope you can help me :/
Modify Murder's PlayerSpawn hook to check for if the player owns the item. As for your code, check the player's team with ply:Team() in the OnEquip function. Pointshop documentation: [url]http://pointshop.burt0n.net/[/url]
ok ... so i have to edit this ? function GM:PlayerLoadout(ply) ply:Give("weapon_rp_hands") -- ply:Give("weapon_fists") if ply:GetMurderer() then ply:Give("weapon_mu_knife") end end hmmm ok ill need to read how to do this but thanks for your help man !
I dont know what to do, everything i did up to now didnt work .__.. In my opinion the hardest part, and the bad thing is that my scripter is offline ...
[url]http://pointshop.burt0n.net/player-meta-functions/items#has-item[/url]
Sorry, you need to Log In to post a reply to this thread.