SA-MP Forums Archive
[Ajuda] Dialog /rg + REP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Dialog /rg + REP (/showthread.php?tid=374472)



Dialog /rg + REP - Yunah_Play - 02.09.2012

Pessoal Queria que Algum me Ajudasse a Mudar o /Rg tipo quando dou /rg ai aparece uma janela chata, ai queria mudar para aparecer tipo chat, sem atrapalhar,

AQUI ESTБ O RG --

// new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
//new lotto = PlayerInfo[targetid][pLottoNr];
new deaths = PlayerInfo[targetid][pDeaths];
new fishes = PlayerInfo[targetid][pFishes];
new bigfish = PlayerInfo[targetid][pBiggestFish];
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 materiaisBTP = PlayerInfo[targetid][pMats];
new smats = PlayerInfo[targetid][psMats];
//new wanted = WantedLevel[targetid];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new kills = PlayerInfo[targetid][pKills];
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 intir = PlayerInfo[targetid][pInt];
new local = PlayerInfo[targetid][pLocal];
new ChaveCarro = PlayerInfo[targetid][pCarKey];
new ChaveCarro2 = PlayerInfo[targetid][pCarKey2];
new Floathealth = PlayerInfo[targetid][pSHealth];
new Float:health;
new creditos = PlayerInfo[targetid][pCreditos];
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Floatx,Floaty,Floatz;
GetPlayerPos(targetid, px, py, pz);
new RulesBox[2000];
if(targetid == playerid)
{}
else
{}
format(RulesBox, sizeof(RulesBox),"%s\n%s\n",RulesBox,name);
format(RulesBox, sizeof(RulesBox), "%s\nNivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]\n",RulesBox, level,atext,shealth+50, cash, Conta, pnumber,creditos);
format(RulesBox, sizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s] Socio:[%s]\n",RulesBox, drank,married,ptime,jtext,thsocio);
format(RulesBox, sizeof(RulesBox), "%s\nPeixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d]\n",RulesBox, fishes,bigfish,crimes,kills,deaths );
format(RulesBox, sizeof(RulesBox), "%s\nPrуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s]\n",RulesBox,costlevel,exp,expquantidade,dtext);
format(RulesBox, sizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Nнvel Helper:[%d]\n",RulesBox,materiaisBTP,smats,NomeORG(targetid), thcargo, PlayerInfo[playerid][pHelper]);
format(RulesBox, sizeof(RulesBox), "%s\nMaconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]\n",RulesBox,Drogas,Drogas2,Drogas3,SafeDrogas,Saf eDrogas2,SafeDrogas3);
format(RulesBox, sizeof(RulesBox), "%s\nChave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]\n",RulesBox, Housekey,bizkey,HireCar[targetid],intir,local);
format(RulesBox, sizeof(RulesBox), "%s\nVeiculo 1[%d] Veiculo 2[%d]\n",RulesBox, ChaveCarro, ChaveCarro2);
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Documentos", RulesBox, "Fechar", "");
}



Re: Dialog /rg + REP - Douglas_prt - 02.09.2012

Quer que o RG em vez de aparecer em Dialog, apareзa no chat?

Sу criar strings...

Exemplo:

pawn Код:
new string1[128];
format(string1, sizeof(string1), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]",level,atext,shealth+50, cash, Conta, pnumber,creditos);
SendClientMessage(targetid, -1, string1);



Re: Dialog /rg + REP - Tony_Rodrigues - 02.09.2012

Poe o codigo com [.pawn] [./pawn] Sem os pontos que eu converto rapidin!


Re: Dialog /rg + REP - Yunah_Play - 02.09.2012

Quote:
Originally Posted by Douglas_prt
Посмотреть сообщение
Quer que o RG em vez de aparecer em Dialog, apareзa no chat?
Sim, tipo Aparecer como se fosse no chat tipo essa aqui peguei na Net sу pra demonstrar




Re: Dialog /rg + REP - Schocc - 02.09.2012

eu ia te ajudar й muito facil faser isto mais ja que ofereceu + REP no titulo nгo irei ajudar


Re: Dialog /rg + REP - felipe_mr - 02.09.2012

Sу Copiar e Colar
pawn Код:
if(targetid == playerid)
        {
            SendClientMessage(playerid, COLOR_WHITE, "|______________ Seus Documentos ______________|");
        }
        else
        {
            format(gstring, sizeof(gstring),"|______________ Documentos de %s ______________|",name);
            SendClientMessage(playerid, COLOR_WHITE,gstring);
        }
        format(gstring, sizeof(gstring), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]", level,atext,shealth+50, cash, Conta, pnumber,creditos);
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s]", drank,married,ptime,jtext);
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d]", fishes,bigfish,crimes,kills,deaths );
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] ",costlevel,exp,expquantidade,dtext);
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Nнvel Helper:[%d]",materiaisBTP,smats,NomeORG(targetid), thcargo, PlayerInfo[playerid][pHelper]);
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]", Housekey,bizkey,HireCar[targetid],intir,local);
        SendClientMessage(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Veiculo 1[%d] Veiculo 2[%d]", ChaveCarro, ChaveCarro2);
        SendClientMessage(playerid, AN_COLOR,gstring);
    }
}