seçmece ceza istek

asitsoft

Marangoz
En iyi cevaplar
0
öldüren kişi ye 3 farklı ceza uygulanmasını istiyorum.kodda bir hatam varmı? "chance of 3%:" bunu başka scriptlerdeki örneklere göre koydum.
Kod:
on death of player:
   if attacker is player:
       chance of 3%:
           execute console command "/kill %attacker%"
          send "&aÖlüme mahkum edildin." to player
       chance of 3%:
           execute console command "/tp hapis %attacker%"
          send "&aHapis cezası aldın." to player
       chance of 3%:
           send "&aCeza almadınız." to player


bunun dışında birde konu on chat: özelliğine
Kod:
on chat:
   if player is "asit" or "oyuncu2":
sohbette kullanıcıların tag almasını istiyorum nasıl yapabilirim.
 

Pledix

Kızıltaş Madencisi
En iyi cevaplar
0
1.
3. if kontrolünde herhangi bir ceza yerine ceza almadınız demen saçma olmuş çünkü yukarda ceza alsa bile şansı denk geldiğinde ceza almadınız diyecek.

2.
Kod:
on chat:
[TAB]set message to "[TAG] %player's displayname% : %message%"
 

asitsoft

Marangoz
En iyi cevaplar
0


Kod:
on chat:
    if player is "asit" or "oyuncu2":
        set message to "&a&lADMIN &e%player's displayname%  &8&l> %message%"
    else:
        set message to "&a&lOYUNCU &e%player's displayname%  &8&l> %message%"

chance of 3%: bunun mantığını çözemedim çözecem elbet :)
 

sweetycrafttt

Ağaç Yumruklayıcı
En iyi cevaplar
0
Tablarda hata var!
on death of player:
if attacker is player:
chance of 3%:
execute console command "/kill %attacker%"
send "&aÖlüme mahkum edildin." to player
chance of 3%:
execute console command "/tp hapis %attacker%"
send "&aHapis cezası aldın." to player
chance of 3%:
send "&aCeza almadınız." to player



On Chat:
Kod:
options:
    prefix1: &8[&bMisafir&8]
    prefix2: &8[&eÇaylak&8]

on chat:
    if player has permission "caylak.sk":
        set message to "@{prefix2} &b%player% &8> &6%message%"
    if player has permission "misafir.sk":
        set message to "@{prefix1} &b%player% &8> &6%message%"
 

asitsoft

Marangoz
En iyi cevaplar
0
elimden geldiğince tablara dikkat ediyorum zaten denerken konsolda tab hataları çıkıyor.vip admin youtuber builder gibi özellikler ekledim.
permission hiç denemedim ama onada bakarım gidişat bu :
Kod:
options:
    admin1: asit
    admin2: 2
    vip1: asit
    vip2: 2
    vip3: 3
    vip4: 4
    vip5: 5
    vip6: 6
    vip7: 7
    vip8: 8
    vip9: 9
    youtuber1: 11
    youtuber2: 11
    builder1: 22
    builder2: 22
command /kit:
    trigger:
        {aldi.%player%} isn't set:
            set {aldi.%player%} to true
            give 10 diamond to player
            send "&6&lBÜYÜK PATRON &8> &a&lBaşarılı &c&lbir şekilde &c&lKitinizi &e&lAldınız!"
        else:
            send "&6&lBÜYÜK PATRON &8> &c&lZaten Kitinizi Almışsınız!"
on login:
    if player is "{@vip1}" or "{@vip3}" or "{@vip4}" or "{@vip5}" or "{@vip6}" or "{@vip7}" or "{@vip8}" or "{@vip9}":
        send "&c&l %player% Vip giris yapti." to players
        set the player's tablist name to "&a&lVIP &e%player%"
    if player is "{@youtuber1}" or "{@youtuber2}":
        send "&c&l %player% YOUTUBER giris yapti." to players
        set the player's tablist name to "&a&lYOUTUBER &e%player%"
    if player is "{@admin1}" or "{@admin2}":
        send "&c&l %player% YOUTUBER giris yapti." to players
        set the player's tablist name to "&a&lYOUTUBER &e%player%"
on chat:
    if player is "{@admin1}" or "{@admin2}":
        set message to "&a&lADMIN &e%player's displayname%  &8&l> %message%"
    else:
        set message to "&a&lOYUNCU &e%player's displayname%  &8&l> %message%"

on join:
    #give player 1 paper named "&6para"
    apply speed 2 to the player for 20 seconds
    #send player title "test" with subtitle "deneme" for 5 seconds
    if {xp.%player%} is not set:
        set {xp.%player%} to 0
        
on break:
    if player is not "{@admin1}" or "{@admin2}":
        cancel event
on break of glass:
    drop glass
on break of thin glass:
    drop thin glass


on damage of item frame:
    if player is not "{@admin1}" or "{@admin2}":
        cancel event
on right click on item frame:
    if player is not "{@admin1}" or "{@admin2}":
        cancel event
on break of item frame:
    if player is not "{@admin1}" or "{@admin2}":
        cancel event
 
Üst