Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //no topo:
- new profnames[17][] =
- {
- "Nada",
- "Desempregado",
- "Taxista",
- "Vendedor de Carros",
- "Corretor",
- "Assassino",
- "Barman",
- "Juiz",
- "Seguran�a",
- "Motorista Particular",
- "Cop Militar",
- "Cop Civil",
- "Cop Elite",
- "Pescador",
- "Instrutor de Dire��o",
- "Motorista de �nibus",
- "Prefeito"
- }
- //comando:
- if(!strcmp(cmd, "/documentos", true))
- {
- new string[256], tmp[256], plid, hab[3];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_RED, "USE: /documentos [id]");
- return 1;
- }
- plid = strval(tmp);
- if(IsPlayerConnected(plid))
- {
- hab[0] = udb_gethabterre(PlayerName(playerid));
- hab[1] = udb_getHabnauti(PlayerName(playerid));
- hab[2] = udb_getHabaerea(PlayerName(playerid));
- format(string, sizeof(string), "Identidade de: %s", PlayerName(playerid));
- SendClientMessage(plid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Skin :: %d", udb_getSkin(PlayerName(playerid)));
- SendClientMessage(plid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Profiss�o :: %s", profnames[Profissao[playerid]]);
- SendClientMessage(plid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Habilita��o Terrestre: %s", (hab[0]) ? ("Sim") : ("N�o"));
- SendClientMessage(plid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Habilita��o N�utica: %s", (hab[1]) ? ("Sim") : ("N�o"));
- SendClientMessage(plid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Habilita��o A�rea: %s", (hab[2]) ? ("Sim") : ("N�o"));
- SendClientMessage(plid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Documentos mostrados para %s.", PlayerName(plid));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- } else {
- SendClientMessage(playerid, COLOR_RED, "Este jogador n�o est� online, ou ID errado.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment