Pessoal , eu nem sei se ja teve esse post ou nгo...se sim eu n achei...Eu keria perguntar eh que '-':
no /lideres , apareзe o mesmo id e o numero do celular sempre...
PM - Blabla - ID 0 - Cel. 1234
eu queria saber como faz diferente...ou eu nгo estou sabendo fazer.
pawn Код:
if (strcmp(cmd, "/lideres", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, "Next Life, lнderes online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLeader] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Policia: %s", sendername);
SendClientMessage(playerid, TEAM_BLUE_COLOR, string);
}
if(PlayerInfo[i][pLeader] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "FBI: %s", sendername);
SendClientMessage(playerid, COLOR_BLACK, string);
}
if(PlayerInfo[i][pLeader] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Guarda Nacional: %s", sendername);
SendClientMessage(playerid, COLOR_GAY, string);
}
if(PlayerInfo[i][pLeader] == 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Mйdicos: %s", sendername);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
}
if(PlayerInfo[i][pLeader] == 5)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Al'Qaeda: %s", sendername);
SendClientMessage(playerid,COLOR_ALQAEDA, string);
}
if(PlayerInfo[i][pLeader] == 6)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Grove Street: %s", sendername);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
}
if(PlayerInfo[i][pLeader] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Prefeito: %s", sendername);
SendClientMessage(playerid, COLOR_MEDIUMAQUA, string);
}
if(PlayerInfo[i][pLeader] == 8)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Assassino: %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pLeader] == 9)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Repуrter: %s", sendername);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
if(PlayerInfo[i][pLeader] == 10)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Ballas: %s", sendername);
SendClientMessage(playerid, TEAM_BALLAS_COLOR, string);
}
if(PlayerInfo[i][pLeader] == 12)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Los Vagos: %s", sendername);
SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
}
if(PlayerInfo[i][pLeader] == 13)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Yakuza: %s", sendername);
SendClientMessage(playerid, COLOR_VERMELHO, string);
}
if(PlayerInfo[i][pLeader] == 15)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "La Coza Nostra: %s", sendername);
SendClientMessage(playerid, COLOR_PURPLE1, string);
}
/*if(PlayerInfo[i][pLeader] == 16)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Comorra: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}*/
}
}
}
return 1;
}