General > Developers Corner
Question about Pointshop 1 abilities
iViscosity:
Was wondering if there was a way to set a "cooldown" on an item, like they can only buy an item once per map. I have two things I custom made in my Pointshop, a Detective Round and Traitor Round; their purpose is obvious. Now, what I wanted to do was make it so it could only be bought once per map (or once per x minutes or x rounds), is there anything built into Pointshop that can accomplish this?
JamminR:
No clue pointshop 1 vs pointshop 2.
Found this -
http://pointshop.burt0n.net/items/functions
If the same hooks exist, I don't see why you couldn't set a normal timer variable like any other cooldown, or no more until map reload method using item:onbuy, have canplayerbuy return false if the variable is set.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version