Level Tag With Name For Admins--Owers

Started by zainraza1789, Dec 04, 2024, 04:11 PM

Previous topic - Next topic

zainraza1789

Replace The Code With Onplayerchat
Note:-
I have a request that you do not write your name in this; please let it remain as my credit.


function onPlayerChat(player, text) {
    if (!stats[player.ID].Logged) return MessagePlayer("[#ff0000]Please login to speak.", player);
   
    // POLICE (Level 2) - Dark Red
    if (stats[player.ID].Level == 2) {
        ClientMessageToAll("[#8B0000]--<< [POLICE] >>-- [#DC143C]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("POLICE [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // V.I.P (Level 3) - Light Green
    if (stats[player.ID].Level == 3) {
        ClientMessageToAll("[#32CD32]--<< [V.I.P] >>-- [#9ACD32]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("V.I.P [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // SUPER VIP (Level 4) - Light Blue
    if (stats[player.ID].Level == 4) {
        ClientMessageToAll("[#4682B4]--<< [SUPER VIP] >>-- [#87CEEB]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("SUPER-VIP [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // HELPER (Level 5) - Teal
    if (stats[player.ID].Level == 5) {
        ClientMessageToAll("[#20B2AA]--<< [HELPER] >>-- [#00CED1]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("HELPER [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Trainee-Moderator (Level 6) - Olive Green
    if (stats[player.ID].Level == 6) {
        ClientMessageToAll("[#556B2F]--<< [Trainee-Moderator] >>-- [#98FB98]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Trainee-Moderator [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Moderator (Level 7) - Gold
    if (stats[player.ID].Level == 7) {
        ClientMessageToAll("[#FFD700]--<< [Moderator] >>-- [#FFD700]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Moderator [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Admin (Level 8) - Purple
    if (stats[player.ID].Level == 8) {
        ClientMessageToAll("[#800080]--<< [Admin] >>-- [#DA70D6]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Test-Admin (Level 9) - Indigo
    if (stats[player.ID].Level == 9) {
        ClientMessageToAll("[#4B0082]--<< [Test-Admin] >>-- [#8A2BE2]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Test-Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Lite-Admin (Level 10) - Dark Orange
    if (stats[player.ID].Level == 10) {
        ClientMessageToAll("[#FF8C00]--<< [Lite-Admin] >>-- [#FFA500]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Lite-Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Super-Admin (Level 11) - Red Violet
    if (stats[player.ID].Level == 11) {
        ClientMessageToAll("[#C71585]--<< [Super-Admin] >>-- [#FF1493]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Super-Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Full-Admin (Level 12) - Hot Pink
    if (stats[player.ID].Level == 12) {
        ClientMessageToAll("[#FF69B4]--<< [Full-Admin] >>-- [#FF1493]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Full-Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Head-Admin (Level 13) - Medium Violet Red
    if (stats[player.ID].Level == 13) {
        ClientMessageToAll("[#C71585]--<< [Head-Admin] >>-- [#FF6347]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Head-Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Manager (Level 14) - Dark Magenta
    if (stats[player.ID].Level == 14) {
        ClientMessageToAll("[#8B008B]--<< [Manager] >>-- [#DDA0DD]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Manager [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Zemenik-Admin (Level 15) - Dark Orchid
    if (stats[player.ID].Level == 15) {
        ClientMessageToAll("[#9932CC]--<< [Zemenik-Admin] >>-- [#DA70D6]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Zemenik-Admin [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Coo-Owner (Level 16) - Royal Blue
    if (stats[player.ID].Level == 16) {
        ClientMessageToAll("[#4169E1]--<< [Coo-Owner] >>-- [#4682B4]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Coo-Owner [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Founder (Level 17) - Purple
    if (stats[player.ID].Level == 17) {
        ClientMessageToAll("[#9400D3]--<< [Founder] >>-- [#708090]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("Founder [ " + player.ID + " ] " + player.Name + ": " + text);
        return;
    }
    // Owner (Level 18) - Gold with special design
    if (stats[player.ID].Level == 18) {
        ClientMessageToAll("[#FFD700]--<< [OWNER] >>-- [#FF4500]" + player.Name + "[#FFFFFF]: " + text, player.Color.r, player.Color.g, player.Color.b);
        print("[#FFD700]Owner [ " + player.ID + " ] " + player.Name + " says: [#FF4500]" + text);
        return;
    }
    return 1;
}
{
   
    print("Level Tag With Name For Admins--Owers has been successfully loaded By ZainGamingNInjaPro!");
}

Thank you, everyone. However, I would like to kindly request that you refrain from adding your name to this. Please allow it to remain credited to me