Admin Tags.
#1

Is it possible to make admins receive a yellow tag like [M] in front of their name, but the rest of their name stays white?.
If so how would I create the tag for admins and the color for the tag?
Reply
#2

You can't have two colors, but you can put the [M] in front of their name providing their other name isn't too long. Just GetPlayerName, format it in with a [M] in front and SetPlayerName
Reply
#3

As lavamike said, you can't have 2 colors.

But to make it a tag just say

new name[MAX_PLAYER_NAME], str[MAX_PLAYER_NAME+3]; // str[MAX_PLAYER_NAME+4] is if you want the tag like you said [M] PlayerNameHere
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "[M] %s", name);
Reply
#4

Or make it so they do a command like /duty and their colour changes while their on duty. Then do /offduty too change their colour back. No I do not know how too make a duty function, this is just an idea.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)