Ok this is the problem on our murder server, there's a permanent magnum buyable from point shop. But we want it so if your a bystander you spawn with it after purchase (which already happens), but you don't spawn with the magnum if you spawn as a Murderer. So i was wondering if there was a way to restrict the weapon from that specific team or a way to make it strip the murderers weapons and give him the weapons he should have "Hands, Knife".
Since there is no code I cant do it exactly right but here, untested:
[lua] ITEM.Name = 'NAME'
ITEM.Price = PRICE
ITEM.Model = 'MODEL'
function ITEM:OnBuy(ply)
if ply:Team() == BYSTANDER TEAM HERE then
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
else
ply:Give(WEAPON YOU WANT FOR MURDERERS)
end
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end [/lua]
Sorry, you need to Log In to post a reply to this thread.