Skocz do zawartości

Poprawa Kody v6


Gość dudimsp2

Rekomendowane odpowiedzi

Gość dudimsp2
on join:
	if {%player%::tecza} is not set:
		set {%player%::tecza} to false

on chat:
	if {%player%::tecza} is true:
		set {_n} to "%player's name%"
		set {_l} to length of {_n}
		set {_s} to ""
		loop {_l} times:
			set {_i} to {_l} - (loop-number)
			set {_i} to {_i} + 1
			set {_k::%{_i}%} to last character of {_n}
			set {_n} to {_i}-1 first characters of {_n}
		loop {_l} times:
			set {_r} to "&a" or "&b" or "&c" or "&d" or "&e" or "&3" or "&5" or "&6" or "&9"
			set {_s::%loop-number%} to colored "%{_r}%%{_k::%loop-number%}%"
			set {_s} to "%{_s}%%{_s::%loop-number%}%"
		set {_d} to "%player's display name%"
		replace all "%player's name%" with {_s} in {_d}
		set player's display name to {_d}
		
command /teczowy:
	trigger:
		if player has permission "core-hc.teczowy":
			if {%player%::tecza} is true:
				set {%player%::tecza} to false
				send "&9CHAT &8> &7Wylaczyles &ateczowy nick&7!"
			else:
				set {%player%::tecza} to true
				send "&9CHAT &8> &7Wlaczyles &ateczowy nick&7!"
		else:
			send "&cNie masz dostepu do tej komendy!"


on death of a player:
    attacker is a player
    send "Dostajesz 10$ za zabicie %victim%." to attacker
    execute server command "/eco give %attacker% 10"

on death:
    attacker is a player
    victim is not a player
    send "Za swoj pogrzeb musiales zaplacic 5$." to attacker
    execute server command "/eco give %attacker% -5"

 

Edytowane przez dudimsp2
naprawilem
Odnośnik do komentarza
https://skript.pl/temat/31920-poprawa-kody-v6/
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...