I made a Rank Manager in script, so if you do /setrank Adrihun Owner, it will give me the rank Owner and I have also added some nice things to it like fireworks. And if an admin spams this command, there will be a lot of fireworks, etc.
So I tried to make an anti spam for this and it worked. But if a normal player types this in, it will tell them
Rank Manager is on cooldown. Now I don't want this. I only want to show "No Permission". I tried adding "if player has permission:" and then "else:" to this, but it just keeps giving me errors in console. Please help me if you understand what i'm saying. lol.
Here are some images if you still don't understand what i'm talking about:
Basically, I don't want to show the 2nd line if the player doesn't have the permission "rankset.spam"
[doublepost=1491523957,1491522234][/doublepost]bump
So I tried to make an anti spam for this and it worked. But if a normal player types this in, it will tell them
Rank Manager is on cooldown. Now I don't want this. I only want to show "No Permission". I tried adding "if player has permission:" and then "else:" to this, but it just keeps giving me errors in console. Please help me if you understand what i'm saying. lol.
Here are some images if you still don't understand what i'm talking about:
Basically, I don't want to show the 2nd line if the player doesn't have the permission "rankset.spam"
code_language.skript:
on command "/setrank":
wait 1 tick
set {sql_.antispamRank.%player%} to true
wait 30 seconds
set {sql_.antispamRank.%player%} to false
on command "/setrank":
if {sql_.antispamRank.%player%} is true:
cancel event
message "&6> &eRank Manager&7 is on cooldown, please wait."