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] == 1338) format(szMessage, sizeof(szMessage), "* Server Manger %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99998) format(szMessage, sizeof(szMessage), "* Co-Executive Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "* 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;
Ok, So This is the /a CMD At the moment...
Код:
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] == 1338) format(szMessage, sizeof(szMessage), "* Server Manger %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99998) format(szMessage, sizeof(szMessage), "* Co-Executive Admin %s: %s", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "* 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 John Smith: Blah blah blah* Everything is white but the rank is green, So it'd look like this *Executive AdminJohn_Smith: Blahblah CAN ANYONE HELP? AND HOW DO I DISABLE TUTORIALS?!?! |
{FF0000} , {FFFFFF}
{FF0000}Executive Admin{FFFFFF}