LeonardoBradoks

Untitled

Mar 24th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | None | 0 0
  1. if(!strcmp(cmd, "/presos", true)) {
  2.     if(!PlayerToPoint(1.0, playerid, 249.0237,67.6151,1003.6406)) return SendClientMessage(playerid, COR_ERRO, "| FALHA | Você não está em um Departamento de Policia!");
  3.     new psos, pspl, stg2[1500];
  4.     strcat(stg2, "Presidiario(a)\tPrisão\n");
  5.     foreach(Player, i) {
  6.         if(preso[i] == 1 && PlayerInfo[i][Oculto] == false) {
  7.             pspl++;
  8.             format(gStr, sizeof(gStr), "{FFFFFF}%s[{76EEC6}%d{FFFFFF}]\t{F71616}Municipal\n", PlayerName(i), i);
  9.             strcat(stg2, gStr);
  10.         }
  11.         if(PlayerInfo[i][Abuser] == 1 && PlayerInfo[i][Oculto] == false) {
  12.             psos++;
  13.             format(gStr, sizeof(gStr), "{FFFFFF}%s[{76EEC6}%d{FFFFFF}]\t{FF0000}Federal\n", PlayerName(i), i);
  14.             strcat(stg2, gStr);
  15.         }
  16.         if((psos+pspl) == 0) return SendClientMessage(playerid, COR_ERRO, "| Pressos |{FFFFFF} Nenhum Preso online no momento!");
  17.         format(hFile, sizeof(hFile), "{FFFFFF}Presos Online [{76EEC6}%d{FFFFFF}]", (psos+pspl));
  18.         ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_TABLIST_HEADERS, hFile, stg2, "Fechar", "");
  19.     }
  20.     return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment