Advertisement
Guest User

sefuder

a guest
Feb 23rd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. CMD:facplayers(playerid)
  2. {
  3. new playersCMD, playersLLL, playersTD3, playersMLC;
  4. for(new i = 0; i <= HighestID; i ++)
  5. {
  6. if(IsPlayerConnected(i) && Player[i][pFaccao] == 1 || Player[i][pFaccao] == 2 || Player[i][pFaccao] == 3)
  7. {playersCMD ++;}
  8. if(IsPlayerConnected(i) && Player[i][pFaccao] == 4 || Player[i][pFaccao] == 5 || Player[i][pFaccao] == 6)
  9. {playersLLL ++;}
  10. if(IsPlayerConnected(i) && Player[i][pFaccao] == 7 || Player[i][pFaccao] == 8 || Player[i][pFaccao] == 9)
  11. {playersTD3 ++;}
  12. if(IsPlayerConnected(i) && Player[i][pFaccao] == 10 || Player[i][pFaccao] == 11 || Player[i][pFaccao] == 12)
  13. {playersMLC ++;}
  14. }
  15. new str[300];
  16. SCM(playerid, COR_PRINCIPAL, "{33AA33}» {ffffff}Facções do Servidor:");
  17. format(str, 300, "» CMD - %d", playersCMD);
  18. SCM(playerid, 0xFF0000AA, str);
  19. format(str, 300, "» LLL - %d", playersLLL);
  20. SCM(playerid, 0x0000FFAA, str);
  21. format(str, 300, "» TD3 - %d", playersTD3);
  22. SCM(playerid, 0xFFFF00AA, str);
  23. format(str, 300, "» MLC - %d", playersMLC);
  24. SCM(playerid, 0xFF5500AA, str);
  25. return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement