SA-MP Forums Archive
[Duvida] /rg por dialog - 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: [Duvida] /rg por dialog (/showthread.php?tid=177965)



[Duvida] /rg por dialog - ::Caio:: - 19.09.2010

Bom o titulo ja diz tudo,eu queria saber se tem como fazer um /rg por dialog pois eu estou tentando aki mais nгo sou muito bom com dialogs =D
Se alguem poder me ajudar vlw...


Re: [Duvida] /rg por dialog - [BEP]AcerPilot - 19.09.2010

wiki.sa-mp.com/wiki/ShowPlayerDialog


Re: [Duvida] /rg por dialog - roginho_97 - 20.09.2010

Posta o Rg ai do seu gm pra que eu faзa um....


Re: [Duvida] /rg por dialog - ::Caio:: - 20.09.2010

Quote:
Originally Posted by roginho_97
Посмотреть сообщение
Posta o Rg ai do seu gm pra que eu faзa um....
No public showstats ta isso:
Код:
		SendClientMessage(playerid, COR_TT,"______________________________________________________________________________");
		format(coordsstring, sizeof(coordsstring), "Nome: [%s] Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d]", name, level, atext, shealth+50, cash, Conta, pnumber);
		SendClientMessage(playerid, COR_MC,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s] Peixes:[%d] Maior Peixe:[%d]", drank, married, ptime, jtext, fishes, bigfish);
		SendClientMessage(playerid, COR_MC,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Valor Nivel:[R$%d] Experiencia:[%d/%d] Familia:[%s] Doenзas:[%s] Crimes Cometidos:[%d]", costlevel, exp, expquantidade, fatext, dtext, crimes);
		SendClientMessage(playerid, COR_MC,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Drogas:[%d]", mats, ftext, rtext, Drogas);
		SendClientMessage(playerid, COR_MC,coordsstring);
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		format(coordsstring, sizeof(coordsstring), "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, COR_MC,coordsstring);
		}
		SendClientMessage(playerid, COR_TT,"______________________________________________________________________________");
	}
}
E o comando й esse:
Quote:

if (strcmp(cmd, "/rg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abre sua carteira e confere o seu registro.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao esta logado !");
}
}
return 1;
}

Se falto algo me da 1 toke que eu procuro e posto.. valeu ai..

Edit:
Se ninguem vai ajudar blz =D vlws ai geral..


Re: [Duvida] /rg por dialog - Vanderson - 23.10.2010

auhahauaha desde hj ngm :S


Re: [Duvida] /rg por dialog - Erick_Schultz - 04.11.2010

https://sampforum.blast.hk/showthread.php?tid=119297


Re: [Duvida] /rg por dialog - jonas_gabriel - 04.11.2010

pawn Код:
new RulesBox[2000];
        //SendClientMessage(playerid, COLOR_WHITE,"______________________________________________________________________________");
        format(RulesBox, sizeof(RulesBox),"%s\n%s\n",RulesBox,name);
        format(RulesBox, sizeof(RulesBox), "%s\nLevel:[%d] Sexo:[%s] Origem:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d]\n", RulesBox, level,atext,otext,shealth+50, cash, Conta, pnumber);
        format(RulesBox, sizeof(RulesBox), "%s\nTipo de Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissao Segundaria:[%s]\n", RulesBox,drank,married,ptime,jtext);
        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\nValor Level:[R$%d] Respeito:[%d/%d] Familia:[%s] Doencas:[%s]\n",RulesBox,costlevel,exp,expquantidade,fatext,dtext);
        format(RulesBox, sizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Emprego:[%s] Organizacao:[%s] Cargo:[%s]\n",RulesBox,mats,smats,ttext,ftext,rtext);
        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,SafeDrogas2,SafeDrogas3);
        format(RulesBox, sizeof(RulesBox), "%s\nChave De Casa:[%d] Chave Da Empresa:[%d] Chave Do Carro Alugado:[%d] Interior:[%d] Local:[%d]\n", RulesBox,Housekey,bizkey,HireCar[targetid],intir,local);
        format(RulesBox, sizeof(RulesBox), "%s\nChave do Veiculo:[%d] Placa do Veiculo:[%d]\n", RulesBox,PlayerInfo[playerid][pCarKey],PlayerInfo[playerid][pVeiculo]);
        ShowPlayerDialog(playerid, 5222, DIALOG_STYLE_MSGBOX, "RG", RulesBox, "Ok", "Voltar");
        //SendClientMessage(playerid, COLOR_WHITE,"______________________________________________________________________________");
creditos sei lб axei num gm lixo ai.


Re: [Duvida] /rg por dialog - TiagoPS - 05.11.2010

adpta as suas necessidades
pawn Код:
format(coordsstring, sizeof(coordsstring), "Nome: [%s] Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d]", name, level, atext, shealth+50, cash, Conta, pnumber);
        format(coordsstring, sizeof(coordsstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s] Peixes:[%d] Maior Peixe:[%d]", drank, married, ptime, jtext, fishes, bigfish);
        format(coordsstring, sizeof(coordsstring), "Valor Nivel:[R$%d] Experiencia:[%d/%d] Familia:[%s] Doenзas:[%s] Crimes Cometidos:[%d]", costlevel, exp, expquantidade, fatext, dtext, crimes);
        format(coordsstring, sizeof(coordsstring), "Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Drogas:[%d]", mats, ftext, rtext, Drogas);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            format(coordsstring, sizeof(coordsstring), "Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]", Housekey,bizkey,HireCar[targetid],intir,local);
        }
        ShowPlayerDialog(playerid, 5222, DIALOG_STYLE_MSGBOX, "RG", coordsstring, "Ok", "Voltar");
    }
}