28.02.2018, 06:30
please help me to change admin color on tab menu, tx
public OnPlayerText(playerid, text[]) { new string[150], name[35]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof (string), "{c80e2d}%s[%d]{FFFFFF} says: %s", name, playerid, text); // {#c80e2d} it's your setup color. SendPlayerMessageToAll(playerid, string); return 0; }
This will change only the color in the TAB MENU and the NAME COLOR above the player. If u wanna set up a color in the chat, u need to do this in OnPlayerText(playerid, text[])
Код:
public OnPlayerText(playerid, text[]) { new string[150], name[35]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof (string), "{c80e2d}%s[%d]{FFFFFF} says: %s", name, playerid, text); // {#c80e2d} it's your setup color. SendPlayerMessageToAll(playerid, string); return 0; } |
if(PlayerInfo[playerid][Admin] == 1338) SetPlayerColor(playerid,0x00000000);