12.11.2013, 14:28
Here's a code
Change the variable "AdminLevel" that i gave u to the variable u have
pawn Код:
if(text[0] == '@' && AdminLevel[playerid] >= 1)
{
new name[24]; GetPlayerName(playerid,name,24);
format(string,256,"<Admin Chat> %s(%d): {AFAFAF}%s",name,playerid,text[1]);
MessageToAdmins(COLOR_WHITE,string);
return 0;
}
pawn Код:
stock MessageToAdmins(color,const string[])
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
if (AdminLevel[i] >= 1)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}