SA-MP Forums Archive
Admin Tags. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin Tags. (/showthread.php?tid=80894)



Admin Tags. - -eXo - 07.06.2009

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?


Re: Admin Tags. - lavamike - 07.06.2009

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


Re: Admin Tags. - efeX - 07.06.2009

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);


Re: Admin Tags. - Burridge - 07.06.2009

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.