30.09.2010, 22:54
Bom eu Vi um Comando de coom por telefone do lado do nome do lider
e tentei fazer um nao copiando da ai nao sei por qual motivo
invez de paarece um em baixo do outro aparece do lado e repidindo
os nomes vo posta uma ss...
/Lideres:
e tentei fazer um nao copiando da ai nao sei por qual motivo
invez de paarece um em baixo do outro aparece do lado e repidindo
os nomes vo posta uma ss...
/Lideres:
Код:
if (strcmp(cmd, "/lideres", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_YELLOW, "|-Viciados Roleplay lideres presentes-|"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pLeader] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Polнcia Militar) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, BLUE, string); } if(PlayerInfo[i][pLeader] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Polнcia Federal) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Grey, string); } if(PlayerInfo[i][pLeader] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Forзas Armadas) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_YELLOWGREEN, string); } if(PlayerInfo[i][pLeader] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Mйdico) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(PlayerInfo[i][pLeader] == 5) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Ballas) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, PURPLE, string); } if(PlayerInfo[i][pLeader] == 6) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Groove) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, DARKGREEN, string); } if(PlayerInfo[i][pLeader] == 7) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Prefeito) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, BRANCO, string); } if(PlayerInfo[i][pLeader] == 8) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Hitman) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, DARKGREY, string); } if(PlayerInfo[i][pLeader] == 9) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Reporter) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, LARANJA1, string); } if(PlayerInfo[i][pLeader] == 10) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Lowriders) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_YELLOW2, string); } if(PlayerInfo[i][pLeader] == 12) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Vagos) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, YELLOW, string); } if(PlayerInfo[i][pLeader] == 13) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Asphalt King's) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, RED, string); } if(PlayerInfo[i][pLeader] == 14){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Milнcia: %s", sendername);SendClientMessage(playerid, BLUE, string);} if(PlayerInfo[i][pLeader] == 15) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Azetecas) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, LIGHTBLUE, string); } if(PlayerInfo[i][pLeader] == 16) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Triads) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_GRAD1, string); } if(PlayerInfo[i][pLeader] == 17) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Yakuza) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 18) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Drifters) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, YELLOW2, string); } if(PlayerInfo[i][pLeader] == 19) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Comando Vermelho) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, LIGHTRED, string); } if(PlayerInfo[i][pLeader] == 20) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Milicia) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_CORAL, string); } if(PlayerInfo[i][pLeader] == 21) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(S.W.A.T) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, COLOR_MAROON, string); } if(PlayerInfo[i][pLeader] == 22) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256,"%s Lider: %s(Al-Qaeda) Telefone: %d",string,sendername, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, TEAM_ORANGE_COLOR, string);