05.03.2018, 23:00
(
Последний раз редактировалось PilateGR; 05.03.2018 в 23:55.
)
Tenta ai agora amigo!
@EDIT
Melhorei mнnimos detalhes e tambйm fiz o mбximo de otimizaзгo possнvel. Tambйm quero deixar claro que nгo foi testado
PHP код:
dcmd_facplayers(playerid, params[])
{
#pragma unused params
new
CounTList[1000],
CounTDialog[800],
CounTeamCMD,
CounTeamLLL,
CounTeam3CP,
CounTeamMLC
;
for(new i = 0; i < MAX_PLAYERS; i ++)
{
switch(Player[i][pFaccoes] && IsPlayerConnected(i))
{
case 1..3:
CounTeamCMD ++;
case 4..6:
CounTeamLLL ++;
case 7..9:
CounTeam3CP ++;
case 10..12:
CounTeamMLC ++;
}
format(CounTDialog, sizeof(CounTDialog), "(CMD): Tem %i Players Online.\n", CounTeamCMD, strcat(CounTList, CounTDialog));
format(CounTDialog, sizeof(CounTDialog), "(LLL): Tem %i Players Online.\n", CounTeamLLL, strcat(CounTList, CounTDialog));
format(CounTDialog, sizeof(CounTDialog), "(3CP): Tem %i Players Online.\n", CounTeam3CP, strcat(CounTList, CounTDialog));
format(CounTDialog, sizeof(CounTDialog), "(MLC): Tem %i Players Online.\n", CounTeamMLC, strcat(CounTList, CounTDialog));
ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Facзхes Online:", CounTList, "Fechar", #);
}
return true;
}
Melhorei mнnimos detalhes e tambйm fiz o mбximo de otimizaзгo possнvel. Tambйm quero deixar claro que nгo foi testado