Color codes are reset!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Gold_Saw

Member
Feb 6, 2019
1
0
0
24
Color codes are reset in some messages. Why? Example:

https://prnt.sc/mhlvwy

Message's code:

Code:
function setColor(p: player , t: text , t2: text):
    if {_t} is "isim":
        if {_t2} is "acik mavi":
            send "{@prefix} &7İsim rengin &bAçık Mavi &7olarak ayarlandı." to {_p}
            send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
            stop
        else if {_t2} is "turkuaz":
            send "{@prefix} &7İsim rengin &9Turkuaz &7olarak ayarlandı." to {_p}
            send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
            stop
        else if {_t2} is "pembe":
            send "{@prefix} &7İsim rengin &dPembe &7olarak ayarlandı." to {_p}
            send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
            stop
        else if {_t2} is "acik kirmizi":
            send "{@prefix} &7İsim rengin &cAçık Kırmızı &7olarak ayarlandı." to {_p}
            send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
            stop
        else if {_t2} is "acik yesil":
            send "{@prefix} &7İsim rengin &aAçık Yeşil &7olarak ayarlandı." to {_p}
            send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
            stop
        else if {_t2} is "turuncu":
            send "{@prefix} &7İsim rengin &6Turuncu &7olarak ayarlandı." to {_p}
            send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
            stop
    else if {_t} is "sohbet":
        if {_t2} is "acik mavi":
            set {chatcolor::%{_p}%} to "&b"
            send "{@prefix} &7Sohbet rengin &bAçık Mavi &7olarak ayarlandı." to {_p}
            stop
        else if {_t2} is "turkuaz":
            set {chatcolor::%{_p}%} to "&c"
            send "{@prefix} &7Sohbet rengin &9Turkuaz &7olarak ayarlandı." to {_p}
            stop
        else if {_t2} is "pembe":
            set {chatcolor::%{_p}%} to "&d"
            send "{@prefix} &7Sohbet rengin &dPembe &7olarak ayarlandı." to {_p}
            stop
        else if {_t2} is "acik kirmizi":
            set {chatcolor::%{_p}%} to "&c"
            send "{@prefix} &7Sohbet rengin &cAçık Kırmızı &7olarak ayarlandı." to {_p}
            stop
        else if {_t2} is "acik yesil":
            set {chatcolor::%{_p}%} to "&a"
            send "{@prefix} &7Sohbet rengin &aAçık Yeşil &7olarak ayarlandı." to {_p}
            stop
        else if {_t2} is "turuncu":
            set {chatcolor::%{_p}%} to "&6"
            send "{@prefix} &7Sohbet rengin &6Turuncu &7olarak ayarlandı." to {_p}
            stop
 
Status
Not open for further replies.