Author Topic: A Non-stuffty Script, Admin Tags  (Read 3858 times)

Admin Tags



No need to explain, Admin tags...
Also, come with a Moderator tag :O
If you have a VIP script, it comes with a tag too :O



DOWNLOAD


This has been made so many times it's not even funny.

This has been made so many times it's not even funny.
what

Do not download this - it will break the chat. OP clearly doesn't know what he's doing and didn't even test his script.

Code: server.cs (28 lines)
//A NON-stuffTY SCRIPT BY BACKARA HAHAHA
package Script_AdminTags
{
    function serverCmdMessageSent(%client,%msg)
    {
        %oldPrefix = %client.clanPrefix;
        if(%client.isAdmin)
        {
            %client.clanPrefix = "<color:zzzzzz>[<color:cccccc>Admin<color:zzzzzz>]" @ %oldPrefix;
            if(%client.isSuperAdmin)
            {
                %client.clanPrefix = "<color:zzzzzz>[<color:ffffff>Super<color:zzzzzz>]" @ %oldPrefix;
                if(%client.isModerator)
                {
                    %client.clanPrefix = "<color:zzzzzz>[<color:00ffff>MOD<color:zzzzzz>]" @ %oldPrefix;
                    if(%client.isVIP)
                    {
                        %client.clanPrefix = "<color:zzzzzz>[<color:ff0000>VIP<color:zzzzzz>]" @ %oldPrefix;
                    }
                }
                Parent::serverCmdMessageSent(%client,%msg);
                %client.clanPrefix = %oldPrefix;
            }
        }
    }
};
activatepackage(Script_AdminTags);

« Last Edit: April 11, 2015, 10:10:19 AM by Zeblote »

Fify OP
Edit: To be fair, you did try. I give you an A+ for effort. Test your scripts before releasing though.
« Last Edit: April 10, 2015, 08:34:05 PM by rggbnnnnn »

This isn't the fail bin, what's going on?!


Ironic, i tested it, it worked for me, but whatever

Ironic, i tested it, it worked for me, but whatever
are u sure

Looks like chat would only work for super admins.


It will only work for super admins, yes.

<color:zzzzzz> doesn't work either. You can only use valid hexadecimal colors here.

valid hexadecimal characters:

0123456789ABCDEF

Ironic, i tested it, it worked for me, but whatever
did you only test it on your server without other players?
that would be why it works if you did