toribio

toribio

Feb 19th, 2009
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.84 KB | None | 0 0
  1. //no topo:
  2. new profnames[17][] =
  3. {
  4.     "Nada",
  5.     "Desempregado",
  6.     "Taxista",
  7.     "Vendedor de Carros",
  8.     "Corretor",
  9.     "Assassino",
  10.     "Barman",
  11.     "Juiz",
  12.     "Seguran�a",
  13.     "Motorista Particular",
  14.     "Cop Militar",
  15.     "Cop Civil",
  16.     "Cop Elite",
  17.     "Pescador",
  18.     "Instrutor de Dire��o",
  19.     "Motorista de �nibus",
  20.     "Prefeito"
  21. }
  22.  
  23. //comando:
  24.     if(!strcmp(cmd, "/documentos", true))
  25.     {
  26.         new string[256], tmp[256], plid, hab[3];
  27.         tmp = strtok(cmdtext, idx);
  28.         if(!strlen(tmp))
  29.         {
  30.             SendClientMessage(playerid, COLOR_RED, "USE: /documentos [id]");
  31.             return 1;
  32.         }
  33.         plid = strval(tmp);
  34.         if(IsPlayerConnected(plid))
  35.         {
  36.             hab[0] = udb_gethabterre(PlayerName(playerid));
  37.             hab[1] = udb_getHabnauti(PlayerName(playerid));
  38.             hab[2] = udb_getHabaerea(PlayerName(playerid));
  39.             format(string, sizeof(string), "Identidade de: %s", PlayerName(playerid));
  40.             SendClientMessage(plid, COLOR_YELLOW, string);
  41.             format(string, sizeof(string), "Skin :: %d", udb_getSkin(PlayerName(playerid)));
  42.             SendClientMessage(plid, COLOR_YELLOW, string);
  43.             format(string, sizeof(string), "Profiss�o :: %s", profnames[Profissao[playerid]]);
  44.             SendClientMessage(plid, COLOR_YELLOW, string);
  45.             format(string, sizeof(string), "Habilita��o Terrestre: %s", (hab[0]) ? ("Sim") : ("N�o"));
  46.             SendClientMessage(plid, COLOR_YELLOW, string);
  47.             format(string, sizeof(string), "Habilita��o N�utica: %s", (hab[1]) ? ("Sim") : ("N�o"));
  48.             SendClientMessage(plid, COLOR_YELLOW, string);
  49.             format(string, sizeof(string), "Habilita��o A�rea: %s", (hab[2]) ? ("Sim") : ("N�o"));
  50.             SendClientMessage(plid, COLOR_YELLOW, string);
  51.             format(string, sizeof(string), "Documentos mostrados para %s.", PlayerName(plid));
  52.             SendClientMessage(playerid, COLOR_YELLOW, string);
  53.         } else {
  54.             SendClientMessage(playerid, COLOR_RED, "Este jogador n�o est� online, ou ID errado.");
  55.         }
  56.         return 1;
  57.     }
Advertisement
Add Comment
Please, Sign In to add comment