Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:afactions(playerid, params[])
- {
- new string[300];
- SendClientMessage(playerid, COLOR_TBLUE, "Les factions du serveur:");
- SendClientMessage(playerid, COLOR_TBLUE, "______________________________");
- for(new i = 0; i < sizeof(FactionInfo); i++)
- {
- if(FactionInfo[i][f_ID] > 0 && FactionInfo[i][f_Type] == 1)
- {
- format(string, sizeof(string), "[GANG] id %d - %s", FactionInfo[i][f_ID], FactionInfo[i][f_Name]);
- SendClientMessage(playerid, -1, string);
- }
- }
- for(new i = 0; i < sizeof(FactionInfo); i++)
- {
- if(FactionInfo[i][f_ID] > 0 && FactionInfo[i][f_Type] == 2)
- {
- format(string, sizeof(string), "[MAFIA] id %d - %s", FactionInfo[i][f_ID], FactionInfo[i][f_Name]);
- SendClientMessage(playerid, -1, string);
- }
- }
- return 1;
- }
- CMD:factions(playerid, params[])
- {
- new str[182], longstr[556];
- for(new i = 0; i < sizeof(FactionInfo); i++)
- {
- if(FactionInfo[i][f_ID] > 0)
- {
- format(str, sizeof(str), "{ADC3E7}%d \t\t\t %s \t\t\t [%d connecté(s) sur %d]\n", i, FactionInfo[i][f_Name], ReturnOnlineMembers(i), ReturnTotalMembers(i));
- strcat(longstr, str);
- }
- }
- ShowPlayerDialog(playerid, DIALOG_DEFAULT, DIALOG_STYLE_LIST, "Liste des factions:", longstr, "<<", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement