Posts: 109
Threads: 28
Joined: Feb 2017
Reputation:
0
Hello, anyone know how to make a delay to a command if was spammed more than 5 times in 2 seconds, or something like that.
And i saw on some servers, if i spam a command, it will show the message of the command only at a second, it will not send the message in same second
Posts: 109
Threads: 28
Joined: Feb 2017
Reputation:
0
The edit is another thing that i want.
So, when a player spam a command more than 5 times, it will make a 60 seconds delay to use again the command.
Posts: 109
Threads: 28
Joined: Feb 2017
Reputation:
0
it will send me the message and Unknown Command if i spam, i use ZCMD and the function is not OnPlayerCommandText, is OnPlayerCommandPerformed
Posts: 1,192
Threads: 10
Joined: Dec 2017
Reputation:
0
I edited the last part in the onplayercommandperformed (success return value) so please re-check my code.
Posts: 217
Threads: 1
Joined: Jul 2017
Reputation:
0
Why don't you just save the timestamp and check if a number of seconds didn't pass yet.