How to make function to block spam commands SOLVED
I have build /tp command with some function that may make lag to server when one or more users start spamm /tp command.
Is there any way to detect if player spam the button for /tp or just the command and detect it, something like that: Please don't spam this command (wait 5sec) *But the first time aways work when user say /tp |
Re: How to make function to block spam commands
Find the function in your plugin and return PLUGIN_HANDLED at its end.This way it won't be displayed in the chat.
|
Re: How to make function to block spam commands
I wan't to make spam delay on the function not to hide it.
|
Re: How to make function to block spam commands
You want to stop the /tp spam, am I right?
If I am, make it that way. |
Re: How to make function to block spam commands
Yes i wanna just first time when use /tp work correct but when you try to spam it to block you.
Sorry i don't see this --- > http://forums.alliedmods.net/showthr...highlight=spam *SOLVED* Maybe anyone will delete this thread... Thanks! |
Re: How to make function to block spam commands SOLVED
Used this for ages, works like a charm.
Code:
|
Re: How to make function to block spam commands SOLVED
Working Flawless!
|
| All times are GMT -4. The time now is 11:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.