options:
tag:&8»&c&lBronie&8»
tagII:&8»&c&lBronie&8«
command /dajbron [<offline player>] [<text>] [<integer>]:
trigger:
if player has permission "dajbron.db":
if arg 1 is set:
if arg 1 is online:
if arg 3 is set:
if arg 2 is set:
if arg 2 is "AWP":
set {_ilosc} to arg 3
loop {_ilosc} times:
give 1 bow of power 25 and flame 15 and unbreaking 10 and infinity 10 named "&2&lA&0.&2&lW&0.&2&lP" with lore "&6&lTa legendarna &2&nSnajperka||&c&lma 0,001%% szans||&4&lNa One Shota" to player
send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
if arg 2 is "amuletprosa":
set {_ilosc} to arg 3
loop {_ilosc} times:
give 1 of 399 of unbreaking 1000 and infinity 1000 named "&e&lLegendarny&c&lAmulet" with lore "&6Po użyciu dostaniesz 3 efekty||&4&lSiły 4||&b&lSpeeda 4||&e&lHaste 4" to player
send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
if arg 2 is not "AWP" or "amuletprosa":
send "" to player
send "&8——————————————→ {@tagII} &8←——————————————" to player
send "&8»&7Poprawne użycie:" to player
send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
send "" to player
if arg 2 is not set:
send "" to player
send "&8——————————————→ {@tagII} &8←——————————————" to player
send "&8»&7Poprawne użycie:" to player
send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
send "" to player
else:
send "&8»&7Podaj ilość" to player
else:
send "&8»&7Podaj nick gracza online" to player
else:
send "&8»&7Podaj nick gracza" to player
else:
send "&8»&7Nie posiadasz permisji!" to player
Jeśli chcesz użyć % w skrypcie musisz zrobić 2x %
Np "&c&lma 0,001%% szans..."
A drugi błąd był od tego, że zapomniałeś dać - to player (w linijce 20)