Replies: 13 comments 1 reply
-
Could you descripe what you tried to create (only in Englisch pls) its hard to read the code if your using that foring language other then english in it. |
Beta Was this translation helpful? Give feedback.
-
Yeah, this command is for specialized crate plugin, where you open crate and there's 10% chance on broadcast to prevent spam, because it's lottery crate. Then I wanted to make cooldown that the one player can make this message only once, but the problem is, that second argument is always different, cause it's reward. Btw I changed it to $2- instead of $2, $3 etc. Translated to english:
and where exactly should I put %cmi_lastrandom_[playerName]% please? |
Beta Was this translation helpful? Give feedback.
-
%cmi_lastrandom_[playerName]% can only be used if you generated a random before
May u find a better way to generate thennumber before... |
Beta Was this translation helpful? Give feedback.
-
Ok, but I don't like so much Msg way, cause I don't wanna spam players, do you think it could be done silently somehow? |
Beta Was this translation helpful? Give feedback.
-
Hm maybe a little cheat arround
Maybe to let it work u may need asFakeOp! instead of asConsole! This could work because asFakeOp! should work for the cmi commands itself |
Beta Was this translation helpful? Give feedback.
-
@CloudeLecaw it doesn't work :/ Tried 90% to see if cooldown does work, but it doesn't.
|
Beta Was this translation helpful? Give feedback.
-
I noticed that cooldown sometimes not work if asConsole or asPlayer is used after. This is allready Report here on git allready as an issue. |
Beta Was this translation helpful? Give feedback.
-
Sorry for late response, but how do you mean:
Simply, cooldown still doesn't work and doesn't count. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
/cmi money give Renzotom %rand/1-100% -s SHouldn't it be this? Cause: If yes, then could be closed. Edit: Oh wait, no this wouldn't work. So how to solve it then? @CloudeLecaw ? I can't use %rand/1-100% cause it's not compatible with check:%cmi_lastrandom_[playerName]%<=20!. probably... it wouldn't count there. So how to fix: %cmi_random_1_100% to won't spam my console with mentioned error? |
Beta Was this translation helpful? Give feedback.
-
normaly %cmi_random_1_100% should work fine |
Beta Was this translation helpful? Give feedback.
-
It doesn't even work from console:
|
Beta Was this translation helpful? Give feedback.
-
Wait u missunderstood something This is useage of specialzed commands. And there never work with a direct input. They work for custom alaias, interactive commands event commands |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
**Question: **
Hello, how could I make this cooldown work only if the first part of whole command - player name, is same? cause the second one is always something another, and that's probably why this cooldown doesn't work as I expect. I wanna it per-player cooldown.
Beta Was this translation helpful? Give feedback.
All reactions