Pivity

Pointshop 1 Properties

Last read Never
#1

Hey there, I am aware that Pointshop 1 is old however it is still a great system that is being used by well know servers.

I was wondering if there was a function or hook that made it so items can only be bought if you are part of a certain team, for example on Jailbreak you can only buy a specific model if you are a Guard.

How would this be done?

#2

Maybe this?

if ply:Team() == TEAM_WHATEVER then
-- rest of ps code in here
end

idk if this will work. This is for DarkRP I assume.

#3

http://pointshop.burt0n.net/items/functions

Edit your item file with that func

function ITEM:CanPlayerEquip(ply)
if ply:Team() ~= TEAM_BANANA then
-- ply:PS_Notify('You can't equip this item in that team.')
return false
end
return true

end

#4

I really appreciate the help guys, thanks :)

Users viewing this thread
Nobody