ULX

Author Topic: Question about Pointshop 1 abilities  (Read 1876 times)

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Question about Pointshop 1 abilities
« on: October 07, 2016, 06:38:42 PM »
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?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Question about Pointshop 1 abilities
« Reply #1 on: October 07, 2016, 07:11:27 PM »
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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given