Skocz do zawartości
  • 0

Randomowy kolor


MrClaasPL

Pytanie

Witam! :)

Napisz mi ktoś skript na tak zwany PremiumColor ?

-

-

PremiumKolor daje możliwość zmianę koloru co wiadomość. Czyli za każdym razem jak coś napiszemy na chat to mamy inny (randomowy kolor nicku) :).Aby to działało trzeba mieć permisje p.color

Z góry dziękuje! :)

Edytowane przez MrClaasPL
Odnośnik do komentarza
https://skript.pl/temat/12105-randomowy-kolor/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

variables:
    {RKolor.%player%} = 0

on chat:
    if player has permission "p.color":
        if {RKolor.%player%} is equal to 0:
            set message to "&a&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 1:
            set message to "&9&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 2:
            set message to "&2&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 3:
            set message to "&b&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 4:
            add 1 to {RKolor.%player%}
            set message to "&5&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 5:
            set message to "&d&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 6:
            set message to "&e&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 7:
            set message to "&6&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 8:
            set message to "&f&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 9:
            set message to "&7&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 10:
            set message to "&c&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 11:
            set message to "&4&o%player%&8: %message%"
            add 1 to {RKolor.%player%}
        if {RKolor.%player%} is equal to 12:
            set message to "&0&o%player%&8: %message%"
            set {RKolor.%player%} to 0

 

Jeżeli będą jakieś błędy to osobiście wytabuj i będą 2 razy nazwy graczy itp tym co mają uprawnienie to bo pewnie w essentials czy gdzieś mogłeś zrobić to musisz w takim przypadku usunąć to co się powtarza z tamtych pluginów dla tych co mają uprawnienie do tego itp :)

Edytowane przez Nieaktywny
Odnośnik do komentarza
https://skript.pl/temat/12105-randomowy-kolor/#findComment-85897
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ę...