Witam. Mam problem z broniami, bronie są napisane w skriptcie, tak samo xp, ale nie chce mi działać dodawanie xp po zabiciu
KOD XP:
on death of player: attacker is a player drop 1 diamond at location of victim send "&a&lZabiles gracza &6&l%victim%!" to attacker add 1 to {kills.%attacker%} add 1 to {killstreak.%attacker%} if {lastkiller.%attacker%} is victim: send "&4&lZEMSTA ! &6&l + 50 XP" to attacker add 50 to {xp.%attacker%} if {killstreak.%victim%} is more or equal to 5: send "&f&lRzeźnik zatrzymany &6&l+ 100 XP" to attacker add 100 to {xp.%attacker%} if attacker have permission "psychogames.vip": send "&6&l + 250 XP" to attacker add 250 to {xp.%attacker%} else: send "&6&l + 200 XP" to attacker add 200 to {xp.%attacker%} if {killstreak.%attacker%} is more or equal to {maxkillstreak.%attacker%}: set {killstreak.%attacker%} to {maxkillstreak.%attacker%} shooter is a player drop 1 diamond at location of victim send "&a&lZabiles gracza &6&l%victim%!" to shooter add 1 to {kills.%shooter%} add 1 to {killstreak.%shooter%} if {lastkiller.%shooter%} is victim: send "&4&lZEMSTA ! &6&l + 50 XP" to shooter add 50 to {xp.%shooter%} if {killstreak.%victim%} is more or equal to 5: send "&f&lRzeźnik zatrzymany &6&l+ 100 XP" to shooter add 100 to {xp.%shooter%} if shooter have permission "psychogames.vip": send "&6&l + 250 XP" to shooter add 250 to {xp.%shooter%} else: send "&6&l + 200 XP" to shooter add 200 to {xp.%shooter%} if {killstreak.%shooter%} is more or equal to {maxkillstreak.%attacker%}: set {killstreak.%shooter%} to {maxkillstreak.%shooter%} victim is a player send "&4&lZostales zabity przez gracza &6&l%attacker%!" to victim add 1 to {deaths.%victim%} set {lastkiller.%victim%} to attacker set {killstreak.%victim%} to 0
KOD BRONI:
on rightclick with bone: shoot arrow with speed 1000.0
Pytanie
psychokillerv1 4
Witam. Mam problem z broniami, bronie są napisane w skriptcie, tak samo xp, ale nie chce mi działać dodawanie xp po zabiciu
KOD XP:
on death of player: attacker is a player drop 1 diamond at location of victim send "&a&lZabiles gracza &6&l%victim%!" to attacker add 1 to {kills.%attacker%} add 1 to {killstreak.%attacker%} if {lastkiller.%attacker%} is victim: send "&4&lZEMSTA ! &6&l + 50 XP" to attacker add 50 to {xp.%attacker%} if {killstreak.%victim%} is more or equal to 5: send "&f&lRzeźnik zatrzymany &6&l+ 100 XP" to attacker add 100 to {xp.%attacker%} if attacker have permission "psychogames.vip": send "&6&l + 250 XP" to attacker add 250 to {xp.%attacker%} else: send "&6&l + 200 XP" to attacker add 200 to {xp.%attacker%} if {killstreak.%attacker%} is more or equal to {maxkillstreak.%attacker%}: set {killstreak.%attacker%} to {maxkillstreak.%attacker%} shooter is a player drop 1 diamond at location of victim send "&a&lZabiles gracza &6&l%victim%!" to shooter add 1 to {kills.%shooter%} add 1 to {killstreak.%shooter%} if {lastkiller.%shooter%} is victim: send "&4&lZEMSTA ! &6&l + 50 XP" to shooter add 50 to {xp.%shooter%} if {killstreak.%victim%} is more or equal to 5: send "&f&lRzeźnik zatrzymany &6&l+ 100 XP" to shooter add 100 to {xp.%shooter%} if shooter have permission "psychogames.vip": send "&6&l + 250 XP" to shooter add 250 to {xp.%shooter%} else: send "&6&l + 200 XP" to shooter add 200 to {xp.%shooter%} if {killstreak.%shooter%} is more or equal to {maxkillstreak.%attacker%}: set {killstreak.%shooter%} to {maxkillstreak.%shooter%} victim is a player send "&4&lZostales zabity przez gracza &6&l%attacker%!" to victim add 1 to {deaths.%victim%} set {lastkiller.%victim%} to attacker set {killstreak.%victim%} to 0KOD BRONI:
Z góry dziękuje za pomoc :)
Odnośnik do komentarza
https://skript.pl/temat/2231-strzelanie-z-broni-i-dawanie-xp/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi