on a TTT server how come when one of my players buys a weapon from pointshop it dosnt spawn in ?
Thanks for all of the info you gave us.
What you need to do:
1) Make sure the weapon exists (is it in gamemodes/terrortown/entities/weapons)?
2) Is the entity name of the pointshop item file the same as the one in the above filepath?
3) Post to us your weapon code so we can see if any mistakes you made.
4) Share with us your weapons file if all else fails.
And make sure the player doesn't already have something equipped
-snip-
Do they already have something in 7? Are there any console errors? Have you tested that the weapon works?
[QUOTE=code_gs;43842029]Do they already have something in 7? Are there any console errors? Have you tested that the weapon works?[/QUOTE]
I want it 2 delete the weapon in there heavy weapon and replace it with that and theres no console errors
You didn't set it to heavy weapon. You set it to slot 7.
[QUOTE=log404;43842207]I want it 2 delete the weapon in there heavy weapon and replace it with that and theres no console errors[/QUOTE]
I believe you want:
[CODE]function ITEM:OnEquip(ply)
ply:StripWeapon(self.WeaponClass)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
[/CODE]
[QUOTE=Aeternal;43842240]I believe you want:
[CODE]function ITEM:OnEquip(ply)
ply:StripWeapon(self.WeaponClass)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
[/CODE][/QUOTE]
Ill test it
[editline]9th February 2014[/editline]
[QUOTE=Aeternal;43842240]I believe you want:
[CODE]function ITEM:OnEquip(ply)
ply:StripWeapon(self.WeaponClass)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
[/CODE][/QUOTE]
You need 2 like help me with me server :D it worked <<<3
[QUOTE=log404;43842253]Ill test it
[editline]9th February 2014[/editline]
You need 2 like help me with me server :D it worked <<<3[/QUOTE]
Glad I could help
Sorry, you need to Log In to post a reply to this thread.