08.01.2017, 18:58
Estou testando algumas coisas e esse cуdigo estб repetindo as mensagens. Caso o player for administrador aparece desta forma:
http://imgur.com/a/ToFMF
Nesse caso, era apenas aparecer o da tag [Administrador]...
http://imgur.com/a/ToFMF
Nesse caso, era apenas aparecer o da tag [Administrador]...
Код:
foreach(Player, i) { if(aInfo[playerid][Admin] == 1) { format(gstring, sizeof(gstring), "{009999}({009966}Canal /n{009999}) [Administrador] %s (%d): %s", PlayerName(playerid), playerid, tmp); SendClientMessage(i, GetPlayerColor(playerid), gstring); } if(aInfo[playerid][Moderador] == 1) { format(gstring, sizeof(gstring), "{009999}({009966}Canal /n{009999}) [Moderador] %s (%d): %s", PlayerName(playerid), playerid, tmp); SendClientMessage(i, GetPlayerColor(playerid), gstring); } else if(aInfo[playerid][Helper] == 1) { format(gstring, sizeof(gstring), "{009999}({009966}Canal /n{009999}) [Helper] %s (%d): %s", PlayerName(playerid), playerid, tmp); SendClientMessage(i, GetPlayerColor(playerid), gstring); } else { if(pInfo[i][Prof] == pInfo[playerid][Prof]) { format(gstring, sizeof(gstring), "{009999}({009966}Canal /n{009999}) [Nнvel %d] %s (%d): %s", pInfo[playerid][Level], PlayerName(playerid), playerid, tmp); SendClientMessage(i, GetPlayerColor(playerid), gstring); } } }