18.04.2012, 19:12
Ok This is my /a CMD Atm.
But i want the Admin ranks to be green in the chat, for example
"Executive Admin Alex Heller: Blahblah"
the 'executive admin' Would be green whereas Everything else will be white, Anyone know how to do this??
PLEASE HELP
Код:
CMD:admin(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 2) { if(!isnull(params)) { new szMessage[128]; if(PlayerInfo[playerid][pAdmin] == 2) format(szMessage, sizeof(szMessage), "* Junior Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 3) format(szMessage, sizeof(szMessage), "* General Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 4) format(szMessage, sizeof(szMessage), "* Senior Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 1337) format(szMessage, sizeof(szMessage), "* Head Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 133 format(szMessage, sizeof(szMessage), "* Server Manger %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 9999 format(szMessage, sizeof(szMessage), "* Co-Executive Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "* ~g~Executive Admin %s: %s", GetPlayerNameEx(playerid), params); else format(szMessage, sizeof(szMessage), "* Undefined Admin (%i) %s: %s", PlayerInfo[playerid][pAdmin], GetPlayerNameEx(playerid), params); SendAdminMessage(COLOR_WHITE, szMessage); Log("logs/adminchat.log", szMessage); } else SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/a)dmin [admin chat]"); } return 1;
"Executive Admin Alex Heller: Blahblah"
the 'executive admin' Would be green whereas Everything else will be white, Anyone know how to do this??
PLEASE HELP