Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:facplayers(playerid)
- {
- new playersCMD, playersLLL, playersTD3, playersMLC;
- for(new i = 0; i <= HighestID; i ++)
- {
- if(IsPlayerConnected(i) && Player[i][pFaccao] == 1 || Player[i][pFaccao] == 2 || Player[i][pFaccao] == 3)
- {playersCMD ++;}
- if(IsPlayerConnected(i) && Player[i][pFaccao] == 4 || Player[i][pFaccao] == 5 || Player[i][pFaccao] == 6)
- {playersLLL ++;}
- if(IsPlayerConnected(i) && Player[i][pFaccao] == 7 || Player[i][pFaccao] == 8 || Player[i][pFaccao] == 9)
- {playersTD3 ++;}
- if(IsPlayerConnected(i) && Player[i][pFaccao] == 10 || Player[i][pFaccao] == 11 || Player[i][pFaccao] == 12)
- {playersMLC ++;}
- }
- new str[300];
- SCM(playerid, COR_PRINCIPAL, "{33AA33}» {ffffff}Facções do Servidor:");
- format(str, 300, "» CMD - %d", playersCMD);
- SCM(playerid, 0xFF0000AA, str);
- format(str, 300, "» LLL - %d", playersLLL);
- SCM(playerid, 0x0000FFAA, str);
- format(str, 300, "» TD3 - %d", playersTD3);
- SCM(playerid, 0xFFFF00AA, str);
- format(str, 300, "» MLC - %d", playersMLC);
- SCM(playerid, 0xFF5500AA, str);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement