[Ajuda] Ajuda , dialog
#1

Alguem passa pra dialog pra mim pfv pfv

nao sei qual й se nao for esse й o de baixo

PHP Code:
      if (strcmp(cmd"/rg"true) == 0)
      {
        if(
IsPlayerConnected(playerid))
        {
            if (
gPlayerLogged[playerid] != 0)
            {
                
ShowStats(playerid,playerid);
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(stringsizeof(string), "* %s Abre a Carteira e confere sua Identidade(RG)."sendername);
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 
true;

PHP Code:
public ShowStats(playerid,targetid)
{
    if(
IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new 
cash =  GetPlayerMoney(targetid);
        new 
atext[20];
        if(
PlayerInfo[targetid][pSex] == 1) { atext "Masculino"; }
        else if(
PlayerInfo[targetid][pSex] == 2) { atext "Feminino"; }
        new 
dtext[20];
        if(
PlayerInfo[targetid][pDoenca] == 1) { dtext "Mongolismo"; }
        else if(
PlayerInfo[targetid][pDoenca] == 2) { dtext "AIDS"; }
        else if(
PlayerInfo[targetid][pDoenca] == 3) { dtext "Herpes Genital"; }
        else if(
PlayerInfo[targetid][pDoenca] == 4) { dtext "Cirrose"; }
        else if(
PlayerInfo[targetid][pDoenca] == 5) { dtext "Cвncer de Pulmгo"; }
        else { 
dtext "Nenhuma"; }
        new 
rtext[64];
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 1)//PD Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Cadete"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Cabo"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Sargento"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Tenente"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Capitгo"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Comandante"; }
            else { 
rtext "Soldado"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 2)//B.O.P.E Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Recruta"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Soldado"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Cabo"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Sargento"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Tenente"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Capitгo"; }
            else { 
rtext "Recruta"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 3)//Exйrcito Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Soldado"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Sargento"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "GATE"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Major"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Tenente Coronel"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "General"; }
            else { 
rtext "Soldado"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 4)//SA:MU Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Auxiliar de Enfermeiro"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Enfermeiro"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Mйdico"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Bombeiro"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Bombeiro Chefe"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Diretor Hospitalar"; }
            else { 
rtext "Auxiliar de Enfermeiro"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 6)//Taliban Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Homem-Bomba"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Membro"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Terrorista"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Bombadeador"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub-Chefe"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Ahmed Yassin"; }
            else { 
rtext "Homem-Bomba"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 7)//Governo Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Motorista"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Seguranзa"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Agente Especial"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Acessor"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Vice-Governo"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Governo"; }
            else { 
rtext "Motorista"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 8)//Hitman Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Novato"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Aprendiz"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Experiente"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Profissional"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub-Lider"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Lider"; }
            else { 
rtext "Novato"; }
        }
        if(
PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 9)//NR Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Humorista"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Rede Globo Local"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Rede Globo Nacional"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Editor Local"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Fotografo Paparazzi"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Diretor de Produзгo"; }
            else { 
rtext "Humorista"; }
        }
        if(
PlayerInfo[targetid][pMembro] == 10 || PlayerInfo[targetid][pLider] == 10)//Taxi Company Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Taxista Em Treinamento"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Taxista Novato"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Taxista Experiente"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Taxista Profissional"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub-Chefe"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Chefe"; }
            else { 
rtext "Taxista Em Treinamento"; }
        }
        if(
PlayerInfo[targetid][pMembro] == 14 || PlayerInfo[targetid][pLider] == 14 || PlayerInfo[targetid][pMembro] == 17
        
|| PlayerInfo[targetid][pLider] == 17 || PlayerInfo[targetid][pMembro] == 18 || PlayerInfo[targetid][pLider] == 18
        
|| PlayerInfo[targetid][pMembro] == 19 || PlayerInfo[targetid][pLider] == 19 || PlayerInfo[targetid][pMembro] == 20
        
|| PlayerInfo[targetid][pLider] == 20 || PlayerInfo[targetid][pMembro] == || PlayerInfo[targetid][pLider] == 5
        
|| PlayerInfo[targetid][pMembro] == 21 || PlayerInfo[targetid][pLider] == 21)//GANG'S Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Aviгozinho"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Membro"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Fogueteiro"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Gangster"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub-Chefe"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Chefгo"; }
            else { 
rtext "Novato"; }
        }
        if(
PlayerInfo[targetid][pMembro] == 15 || PlayerInfo[targetid][pLider] == 15)//AlQaeda Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Homem-Bomba"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Membro"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Terrorista"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Bombardeador"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub-Chefe"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Osama Bin Laden"; }
            else { 
rtext "Homem-Bomba"; }
        }
        if(
PlayerInfo[targetid][pMembro] == 16 || PlayerInfo[targetid][pLider] == 16)//Policia Civil Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Novato"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Agente Do G.O.E"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Agente Do G.E.R"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Atirador de Elite"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Perito Criminal"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Lнder"; }
            else { 
rtext "Novato"; }
        }
        if(
PlayerInfo[targetid][pMembro] == 13 || PlayerInfo[targetid][pLider] == 13
        
|| PlayerInfo[targetid][pMembro] == 12 || PlayerInfo[targetid][pLider] == 12)//Mбfias Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Novato"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Membro"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Associado"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Capo"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub-Lider"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Lнder"; }
            else { 
rtext "Novato"; }
        }
        if(
PlayerInfo[targetid][pMembro] == 11 || PlayerInfo[targetid][pLider] == 11)//PF Ranks
        
{
            if(
PlayerInfo[targetid][pCargo] == 1) { rtext "Agente"; }
            else if(
PlayerInfo[targetid][pCargo] == 2) { rtext "Espiгo"; }
            else if(
PlayerInfo[targetid][pCargo] == 3) { rtext "Atirador"; }
            else if(
PlayerInfo[targetid][pCargo] == 4) { rtext "Capitгo"; }
            else if(
PlayerInfo[targetid][pCargo] == 5) { rtext "Sub Lider"; }
            else if(
PlayerInfo[targetid][pCargo] == 6) { rtext "Lнder"; }
            else { 
rtext "Agente"; }
        }
        else
        {
            
rtext "Nenhum";
        }
        new 
jtext[21];
        if(
PlayerInfo[targetid][pEmprego] == 1) { jtext "Detetive"; }
        else if(
PlayerInfo[targetid][pEmprego] == 2) { jtext "Advogado"; }
        else if(
PlayerInfo[targetid][pEmprego] == 3) { jtext "Prof.Sexo"; }
        else if(
PlayerInfo[targetid][pEmprego] == 4) { jtext "Vendedor De Drogas"; }
        else if(
PlayerInfo[targetid][pEmprego] == 5) { jtext "Seguranзa"; }
        else if(
PlayerInfo[targetid][pEmprego] == 6) { jtext "Vendedor De Armas"; }
        else if(
PlayerInfo[targetid][pEmprego] == 7) { jtext "Boxeador"; }
        else if(
PlayerInfo[targetid][pEmprego] == 8) { jtext "Motorista de Onibus"; }
        else if(
PlayerInfo[targetid][pEmprego] == 9) { jtext "Mendigo"; }
        else if(
PlayerInfo[targetid][pEmprego] == 10) { jtext "Caminhoneiro"; }
        else if(
PlayerInfo[targetid][pEmprego] == 11) { jtext "Agente Penitenciбrio"; }
        else { 
jtext "Nenhum"; }
        new 
drank[20];
        if(
PlayerInfo[targetid][pVIP] == 0) { drank "Gratis"; }
        else if(
PlayerInfo[targetid][pSocio] == 1) { drank "Bronze"; }
        else if(
PlayerInfo[targetid][pSocio] == 2) { drank "Prata"; }
        else if(
PlayerInfo[targetid][pSocio] == 3) { drank "Ouro"; }
        else if(
PlayerInfo[targetid][pVIP] == 1) { drank "VIP Bronze"; }
        else if(
PlayerInfo[targetid][pVIP] == 2) { drank "VIP Prata"; }
        else if(
PlayerInfo[targetid][pVIP] == 3) { drank "VIP Ouro"; }
        new 
married[20];
        
strmid(marriedPlayerInfo[targetid][pMarriedTo], 0strlen(PlayerInfo[targetid][pMarriedTo]), 255);
        
//new age = PlayerInfo[targetid][pAge];
        
new ptime PlayerInfo[targetid][pConnectTime];
        
//new lotto = PlayerInfo[targetid][pLottoNr];
        
new deaths PlayerInfo[targetid][pDeaths];
        new 
crimes PlayerInfo[targetid][pCrimes];
        new 
Drogas PlayerInfo[targetid][pDrogas]; // maconha
        
new Drogas2 PlayerInfo[targetid][pDrogas2]; // cocaina
        
new Drogas3 PlayerInfo[targetid][pDrogas3]; // crack
        
new SafeDrogas PlayerInfo[targetid][pSafeDrogas]; // maconha
        
new SafeDrogas2 PlayerInfo[targetid][pSafeDrogas2]; // cocaina
        
new SafeDrogas3 PlayerInfo[targetid][pSafeDrogas3]; // crack
        
new mats PlayerInfo[targetid][pMats];
        new 
smats PlayerInfo[targetid][psMats];
        
//new wanted = WantedLevel[targetid];
        
new level PlayerInfo[targetid][pLevel];
        new 
exp PlayerInfo[targetid][pExp];
        new 
Dinamite PlayerInfo[targetid][pDina];
        new 
pnumber PlayerInfo[targetid][pPnumber];
        new 
Conta PlayerInfo[targetid][pConta];
        new 
nxtlevel PlayerInfo[targetid][pLevel]+1;
        new 
expquantidade nxtlevel*levelexp;
        new 
costlevel nxtlevel*levelcost;//10k for testing purposes
        
new Housekey PlayerInfo[targetid][pPHousekey];
        new 
bizkey PlayerInfo[targetid][pPbiskey];
        new 
local PlayerInfo[targetid][pLocal];
        new 
ChaveCarro PlayerInfo[targetid][pCarKey];
        new 
Float:health;
        new 
intir PlayerInfo[targetid][pInt];
        new 
creditos PlayerInfo[targetid][pCreditos];
        new 
name[MAX_PLAYER_NAME];
        
GetPlayerName(targetidnamesizeof(name));
        
GetPlayerHealth(targetid,health);
        new 
Float:px,Float:py,Float:pz;
        
GetPlayerPos(targetidpxpypz);
        if(
targetid == playerid)
        {
            
SendClientMessage(playeridCOLOR_WHITE,"_____________________________________________________________________________________________________");
            
GetPlayerName(playeridsendernameMAX_PLAYER_NAME);
            
format(gstringsizeof(gstring), "Personagem: %s"sendername);
            
SendClientMessage(playerid,COLOR_YELLOW,gstring);
        }
        else
        {
            
format(gstringsizeof(gstring),"{00FF00}|__B_L_R__|Documentos de %s |__B_L_R__|",name);
            
SendClientMessage(playeridCOR_VAGOS,gstring);
        }
        
format(gstringsizeof(gstring), "{00EEEE}Level:[%d] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d] Coins:[%d]"levelcashContapnumber,creditoscoins);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
format(gstringsizeof(gstring), "{00EEEE}Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,ptime,jtext);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
format(gstringsizeof(gstring), "{00EEEE}Crimes Cometidos:[%d] Morreu:[%d] Sexo:[%s] Dinamites:[%d/7]",crimes,deaths,atext,Dinamite);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
format(gstringsizeof(gstring), "{00EEEE}Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Interior:[%d] ",costlevel,exp,expquantidade,dtext,intir);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
format(gstringsizeof(gstring), "{00EEEE}Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%d] Local:[%d]",mats,smats,NomeORG(targetid),PlayerInfo[targetid][pCargo],local);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
format(gstringsizeof(gstring), "{00EEEE}Maconha:[%d] Cocaina:[%d] Crack:[%d] S.Maconha:[%d] S.Cocaina:[%d] S.Crack:[%d]",Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
format(gstringsizeof(gstring), "{00EEEE}Chave Casa [%d] Chave Empresa [%d] Chave Carro(Aluguel) [%d] Chave Carro(VIP)[%d]"Housekey,bizkey,HireCar[targetid],ChaveCarro);
        
SendClientMessage(playeridCOR_VAGOS,gstring);
        
SendClientMessage(playeridCOLOR_WHITE,"_____________________________________________________________________________________________________");
    }

Reply
#2

Sу estudar parceiro.
LINK 1 : https://sampforum.blast.hk/showthread.php?tid=571736
LINK 2 : https://sampwiki.blast.hk/wiki/Dialog_Styles
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)