PDA

View Full Version : Weapon Spawner Limit


nxtL1F3
08-02-2010, 12:04 PM
I have this little weapon dispenser, which is fine, but i want a limit so people cant spam it and crash my server. is there any way to limit how many times someone can use the button before it breaks?

Chaosed0
08-02-2010, 12:19 PM
Every time the dispenser is used, have it send an output to math_counter, adding one. Set the math_counter's "max" keyfield to the max number of times you want the dispenser used, and then put output on the math_counter: OnHitMax -> dispenser -> disable (or something, you'll have to tweak it depending on how your dispenser is setup).