Pointshop, weapons and ulx stuffs.

So, Im trying to get pointshop to work all nice, but as it is. . . im having some problems, i need to know how i can add a TTT weapon to the shop, and how i can make it so only mods, admins, vip’s, can buy some weapons. Thank you for the help. my english is not good, i am not english. sorry

Yeah Im having sort of your problem too. Trying to make a shop for my gamemode.

bam, guys kill 2 stones with one bird

You can’t

Here’s the item documentation: http://pointshop.burt0n.net/items and here’s a list of ttt weapons: http://glua.me/bin/?path=/gamemodes/terrortown/entities/weapons/

Wow, Thank you, but i couldn’t make it so mods or donators could have items for them only? like with goldenforge

Your going to want to use this code for the item. This is for hats not weapons im not sure about admin weapons codes…

ITEM.Name = ‘Item Name Here’
ITEM.Price = 250 – Price Here
ITEM.Model = ‘Item Model Here.mdl’
ITEM.Attachment = ‘eyes’ – Where you want the hat to be leveld
ITEM.AdminOnly = false – Admin only?

function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end

function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end

function ITEM:ModifyClientsideModel(ply, model, pos, ang)
model:SetModelScale(0.7, 0)
pos = pos + (ang:Forward() * 2) – placement angle and depth i believe
ang:RotateAroundAxis(ang:Right(), 20)

return model, pos, ang

end

ITEM.Name = “weapon_ttt_flaregun”
ITEM.Price = 200
ITEM.Model = “models/player/kleiner.mdl”
ITEM.Skin = 1
ITEM.AdminOnly = true
ITEM.AllowedUserGroups = { “admin” }
ITEM.SingleUse = false
function ITEM:OnBuy(ply)
ply:Kill()
end
function ITEM:OnSell(ply)
ply:Kill()
end
function ITEM:OnEquip(ply, modifications)
PrintTable(modifications)
ply:Kill()
end
function ITEM:OnHolster(ply)
ply:Kill()
end
function ITEM:CanPlayerBuy(ply)
return ply:Alive() – only if alive
end