[SK] Yardım KONU KİLİT

ChocolateStation

Kömür Madencisi
En iyi cevaplar
0
Gençler 2 şey için yardım isteyeceğim.

1-) Envanterin istediğimiz slotuna nasıl item verebiliriz?
2-) Envanterde eşyaları oynatmayı nasıl engelleyebiliriz?

Yardımcı olursanız çok sevinirim. Şimdiden teşekkürler.
 

firestud5

YASAKLANDI
En iyi cevaplar
0
Kod:
on damage:
    world is "{@thehubworld}":
        damage cause is fall:
            heal the victim by 10 hearts
            cancel the event
on damage:
    world is "{@thehubworld}":
        damage cause is void:
            heal the victim by 10 hearts
            teleport victim to {thehubspawn}
on join:
    wait 2 ticks
    teleport player to {thehubspawn}
    wait 1 tick
    teleport player to {thehubspawn}           
on damage of a player:
    world is "{@thehubworld}":
        damage cause is not void:
            cancel the event
on break:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event       
on place:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event       
on explosion:
    world is "{@thehubworld}":
        cancel the event   
on spawn:
    world is "{@thehubworld}":
        cancel the event
on inventory click:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event       
on rightclick holding a firework rocket:
    world is "{@thehubworld}":
        player has permission "FreeHub.rocket":
            cancel the event
            if difference between {temporanei.rockclick.%player%} and now is less than 1 second:
                stop
            if difference between {temporanei.rock.%player%} and now is more than 7 seconds:
                set {temporanei.rock.%player%} to now
                set {temporanei.rockclick.%player%} to now
                push the player up at speed 3.5
                launch ball large firework colored grey and red at player with duration 1.0
                wait 4 ticks
                launch ball large firework colored green and purple at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored yellow and purple at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored yellow and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored red and light blue at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored light blue and brown at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored brown and grey at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored orange and purple at player with duration 0.1
                stop
            if {temporanei.rock.%player%} is not set:
                set {temporanei.rock.%player%} to now
                set {temporanei.rockclick.%player%} to now
                push the player up at speed 3.5
                launch ball large firework colored grey and red at player with duration 1.0
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                set {temporanei.rock.%player%} to now
                set {temporanei.rockclick.%player%} to now
                stop
            if difference between {temporanei.rock.%player%} and now is less than 7 seconds:
                message "&4Wait.. &cthe rocket is charging..."
                set {temporanei.rockclick.%player%} to now
                stop
        else:
            message "&4I'm sorry but you don't have the permission! No rocket for you!"
 

ChocolateStation

Kömür Madencisi
En iyi cevaplar
0
Kod:
on damage:
    world is "{@thehubworld}":
        damage cause is fall:
            heal the victim by 10 hearts
            cancel the event
on damage:
    world is "{@thehubworld}":
        damage cause is void:
            heal the victim by 10 hearts
            teleport victim to {thehubspawn}
on join:
    wait 2 ticks
    teleport player to {thehubspawn}
    wait 1 tick
    teleport player to {thehubspawn}          
on damage of a player:
    world is "{@thehubworld}":
        damage cause is not void:
            cancel the event
on break:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event      
on place:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event      
on explosion:
    world is "{@thehubworld}":
        cancel the event  
on spawn:
    world is "{@thehubworld}":
        cancel the event
on inventory click:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event      
on rightclick holding a firework rocket:
    world is "{@thehubworld}":
        player has permission "FreeHub.rocket":
            cancel the event
            if difference between {temporanei.rockclick.%player%} and now is less than 1 second:
                stop
            if difference between {temporanei.rock.%player%} and now is more than 7 seconds:
                set {temporanei.rock.%player%} to now
                set {temporanei.rockclick.%player%} to now
                push the player up at speed 3.5
                launch ball large firework colored grey and red at player with duration 1.0
                wait 4 ticks
                launch ball large firework colored green and purple at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored yellow and purple at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored yellow and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored red and light blue at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored light blue and brown at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored brown and grey at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored orange and purple at player with duration 0.1
                stop
            if {temporanei.rock.%player%} is not set:
                set {temporanei.rock.%player%} to now
                set {temporanei.rockclick.%player%} to now
                push the player up at speed 3.5
                launch ball large firework colored grey and red at player with duration 1.0
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                wait 4 ticks
                launch ball large firework colored grey and red at player with duration 0.1
                set {temporanei.rock.%player%} to now
                set {temporanei.rockclick.%player%} to now
                stop
            if difference between {temporanei.rock.%player%} and now is less than 7 seconds:
                message "&4Wait.. &cthe rocket is charging..."
                set {temporanei.rockclick.%player%} to now
                stop
        else:
            message "&4I'm sorry but you don't have the permission! No rocket for you!"
İsteğime bakar mısın? Alakasız cevaplar vermeyelim lütfen :)
 

HKNGLGN

Zombi Katili
En iyi cevaplar
3
PHP:
set slot 0 of player to compass named "Deneme"

on inventory click:
    player isn't an op:
        cancel event
 

ChocolateStation

Kömür Madencisi
En iyi cevaplar
0
Hublar için geliştirilmiş script bu.
Aradıklarınız burada var.
Mesela :
Kod:
on inventory click:
    world is "{@thehubworld}":
        if player has permission "admin.hub.yetkisi":
            stop
        else:
            cancel the event
PHP:
set slot 0 of player to compass named "Deneme"

on inventory click:
    player isn't an op:
        cancel event
Çok teşekkür ederim ikinize de çok sağolun. :) Konuyu kilitleyebiliriz.
 
Üst