View Single Post
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 11-15-2017 , 12:31   Re: How to limit a command to usage every x minutes
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
He did it correctly with "less than" because he's using the reverse logic from how I stated it (i.e. he's denying the the use of the function if the elapsed time is less than the required time).
Ohh, yeah, I didn't notice that.

Quote:
Originally Posted by blood2k View Post
Yeah, I thought it was done the way fysiks mentioned. I honestly look around on google, and the amxx wiki to figure out how to get any of this to work as I don't really know much about it..

But I'm still stuck with making it block EVERYONE.

Some1 mentioned up to turn the last_used array into an integer

not really sure how I'd do this as I'm total noob at this stuff lol
last_used is array of integers and it is fine, since as I understand you want every player to be able to execute it once per 2 minutes, right?! Also this must work, I don't see any problems with it.

Last edited by KiLLeR.; 11-15-2017 at 12:35.
KiLLeR. is offline