20.03.2012, 04:15
Quote:
CMD:a(playerid, params[]) { return cmd_admin(playerid, params); } CMD:admin(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { if(!isnull(params)) { new szMessage[128]; if(PlayerInfo[playerid][pAdmin] == 1) format(szMessage, sizeof(szMessage), "** {C85A17}Admin Level 1{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 2) format(szMessage, sizeof(szMessage), "** {FFFF00}Admin Level 2{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 3) format(szMessage, sizeof(szMessage), "** {99FF33}Admin Level 3{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 4) format(szMessage, sizeof(szMessage), "** {FF6633}Admin Level 4{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 1337) format(szMessage, sizeof(szMessage), "** {3366FF}Admin Level 5{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 133 format(szMessage, sizeof(szMessage), "** {FFFF00}Admin Level 6{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 9999) format(szMessage, sizeof(szMessage), "** {FF9933}Executive Admin{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 9999 format(szMessage, sizeof(szMessage), "** {FF0000}Admin Level 7{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "** {FF0000}Admin Level 8{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 999995) format(szMessage, sizeof(szMessage), "** {FF00FF}Community Manager{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 99999 format(szMessage, sizeof(szMessage), "** {00FF00}Co-Community Owner{FFFFFF} %s says %s **", GetPlayerNameEx(playerid), params); else if(PlayerInfo[playerid][pAdmin] == 999999) format(szMessage, sizeof(szMessage), "** {00FF00}Community Owner{FFFFFF} %s says %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; } |
REP+