Код:
CMD:a(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 1)
{
new string[128]; format(string, sizeof(string), "[ADMIN-CHAT] %s: %s", PlayerName2(playerid), params[0] );
switch(PlayerInfo[playerid][Level])
{
case 1, 2, 3:MessageToAdmins(green,string);
case 4, 5 :MessageToAdmins(red,string);
case 6, 7 :MessageToAdmins(blue,string);
}
#if ADM_CHAT_LOG == true
SaveToFile("AdmChatLog",string);
#endif
}
else return SendClientMessage(playerid,red,"ERROR: You need to be admin to use this command");
return 1;
}