28.06.2012, 02:52
Quote:
There's no need to use timers for that, all you would need is to compare UNIX timestamps, it leads to more functionality, cleaner and more efficient code.
For example: pawn Код:
Using timers for limiting things like commands/text or anything along those lines is silly! Finally, as for a "sophisticated" way of detecting IPs, URLs or other stuff you don't want people posting in your chat, then you should make use of the Regular Expression plugin and create regular expressions to accurately detect what you want to block. |