Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Bugowanie skryptu na itemy po respawnie


alk0mat_

Rekomendowane odpowiedzi

Opublikowano

witam mam serwer pvp, i odrazu dostaje sie itemy po wejsciu na serwer i mam skrypt ze po respawnie daje itemy do eq ale poczas pvp jak sie zloga to buguje sie i nie mozna wejsc na serwer bo sie wystwietla ze ktos jest juz na serwerze i czym zastapic "on respawn" bo to jest blad na pewno tego bo sprawdzalem, sprawdzalem tez on death itd ale nie daje itemow,  skrypt ponizej

 

 

 

on first join:
    set action bar of player to "&c&lWitaj po raz pierwszy na serwerze&7."
    clear the player's inventory
    heal player
    execute player command "warp spawn"
    give iron helmet of protection 4 and unbreaking 2 to player's helmet
    give iron chestplate of protection 4 and unbreaking 2 to player's chestplate
    give iron leggings of protection 4 and unbreaking 2 to player's leggings
    give iron boots of protection 4 and unbreaking 2 to player's boots
    give iron sword of sharpness 4 and unbreaking 2 to player
    give iron sword of knockback 2 and unbreaking 2 to player
    give 15 golden apple:0 to player
    give fishing rod to player
    give water bucket to player
    give 64 cobblestone to player
    give 64 cobblestone to player
    give 2 ice to player
    give 1 278 to player
    give 16 cooked porkchop to player
    if player has permission "items.vip":
        give 1 ender pearl named "&6&lPerla VIPA" to player
        give bow of power 3 named "&6&lLuk VIPA" to player
        give 16 arrow to player

            
on join:
    set action bar of player to "&7Dolaczyles do areny &a&lIron&7."
    clear the player's inventory
    heal player
    execute player command "warp spawn"
    remove resistance from player
    remove speed from player
    remove strength from player
    remove absorption from player    
    remove fire resistance from player
    remove regeneration from player
    give iron helmet of protection 4 and unbreaking 2 to player's helmet
    give iron chestplate of protection 4 and unbreaking 2 to player's chestplate
    give iron leggings of protection 4 and unbreaking 2 to player's leggings
    give iron boots of protection 4 and unbreaking 2 to player's boots
    give iron sword of sharpness 4 and unbreaking 2 to player
    give iron sword of knockback 2 and unbreaking 2 to player
    give 15 golden apple:0 to player
    give fishing rod to player
    give water bucket to player
    give 64 cobblestone to player
    give 64 cobblestone to player
    give 2 ice to player
    give 1 278 to player
    give 16 cooked porkchop to player
    if player has permission "items.vip":
        give 1 ender pearl named "&6&lPerla VIPA" to player
        give bow of power 3 named "&6&lLuk VIPA" to player
        give 16 arrow to player

 

on respawn:
    clear the player's inventory
    heal player
    remove resistance from player
    remove speed from player
    remove strength from player
    remove absorption from player    
    remove fire resistance from player
    remove regeneration from player
    execute player command "warp spawn"
    send "&8&m-----------------------------"
    send "&c&lZostales zabity!"
    send "&8&m-----------------------------"
    give iron helmet of protection 4 and unbreaking 2 to player's helmet
    give iron chestplate of protection 4 and unbreaking 2 to player's chestplate
    give iron leggings of protection 4 and unbreaking 2 to player's leggings
    give iron boots of protection 4 and unbreaking 2 to player's boots
    give iron sword of sharpness 4 and unbreaking 2 to player
    give iron sword of knockback 2 and unbreaking 2 to player
    give 15 golden apple:0 to player
    give fishing rod to player
    give water bucket to player
    give 64 cobblestone to player
    give 64 cobblestone to player
    give 2 ice to player
    give 1 278 to player
    give 16 cooked porkchop to player
    if player has permission "items.vip":
        give 1 ender pearl named "&6&lPerla VIPA" to player
        give bow of power 3 named "&6&lLuk VIPA" to player
        give 16 arrow to player
 

  • Biter. zmienił(a) tytuł na Bugowanie skryptu na itemy po respawnie

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...