• Pointshop auto holster
    0 replies, posted
hey guys, i created an jailbreak server with the pointshop from _undefined i added playermodels which are only available only for prisoners but when the prisoners equiped the playermodel and changing over to guards they still got the playermodel which guards shouldnt get, how can i make it holster when they change the team? my code : [CODE]ITEM.Name = 'Doritos[PRISONER]' ITEM.Price = 1000 ITEM.Model = 'models/player/heatwave.mdl' function ITEM:OnEquip(ply, modifications) if not ply._OldModel then ply._OldModel = ply:GetModel() end timer.Simple(1, function() ply:SetModel(self.Model) end) end function ITEM:OnHolster(ply) if ply._OldModel then ply:SetModel(ply._OldModel) end end function ITEM:PlayerSetModel(ply) ply:SetModel(self.Model) end function ITEM:CanPlayerEquip(ply) if ply:Team() ~= TEAM_PRISONER then ply:PS_Notify("Du kannst dieses Playermodel zurzeit nicht benutzen da du ein Guard bist.") return false end return true end[/CODE]
Sorry, you need to Log In to post a reply to this thread.