08.01.2017, 21:09
Quote:
Deu certo. Obrigado. Qual foi a mudanзa?
@Whoo Seu cуdigo acabou que o pawno parou de funcionar. |
PHP код:
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);
}
}
}
PHP код:
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);
else if(aInfo[playerid][Moderador] == 1)
format(gstring, sizeof(gstring), "{009999}({009966}Canal /n{009999}) [Moderador] %s (%d): %s", PlayerName(playerid), playerid, tmp);
else if(aInfo[playerid][Helper] == 1)
format(gstring, sizeof(gstring), "{009999}({009966}Canal /n{009999}) [Helper] %s (%d): %s", PlayerName(playerid), playerid, tmp);
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, -1, gstring);
}