Admin In chat
#4

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

Here Is the admin chat system I use, If it works fell free to change the Admin Ranks! But Im not sure If it will!

REP+
Reply


Messages In This Thread
Admin In chat - by [LHT]Bally - 20.03.2012, 00:08
AW: Admin In chat - by Blunt P - 20.03.2012, 00:19
Re: Admin In chat - by Skribblez - 20.03.2012, 00:26
Re: Admin In chat - by MaximumGaming - 20.03.2012, 04:15
Re: Admin In chat - by Skribblez - 20.03.2012, 04:36
Re: Admin In chat - by new121 - 20.03.2012, 04:44
Re: Admin In chat - by Haydz - 20.03.2012, 05:56

Forum Jump:


Users browsing this thread: 2 Guest(s)