03.05.2011, 14:07
pawn Код:
if(text[0] == '#' && PlayerInfo[playerid][pAdminLevel] >= 1) {
new
poster[30];
for(new i = 0; i < MAX_PLAYERS; ++i) {
if(IsPlayerConnected(i) && !IsPlayerNPC(i) && PlayerInfo[i][pAdminLevel] >= 1) {
new string[128];
GetPlayerName(playerid,poster,sizeof(poster));
format(string,sizeof(string),"[AdminChat] | %s: %s",poster,text[1]);
SendClientMessage(i,yellow,string);
}
}
return 0;
}
I don't see the prob in the code :\