[Ajuda]Sair do 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: [Ajuda]Sair do dialog (
/showthread.php?tid=190807)
[Ajuda]Sair do dialog -
keller012 - 16.11.2010
Como eu faзo para se o cara clica em sair
ele se kikado
pawn Код:
{
gPlayerAccount[playerid] = 0;
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Bem-vindo, %s\nVocк nгo tem umas conta.\nPor favor se registre:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Registrar",regstring,"Registrar","Sair");
}
Re: [Ajuda]Sair do dialog -
mateuspinho - 16.11.2010
Код:
{
ShowPlayerDialog(playerid,DIALOG_WELCOME,DIALOG_STYLE_MSGBOX,"BEM VINDO!","Seja bem vindo ao servidor ... \n
Respeite os outros players e os administradores \n
Siga as regras, ou vocк poderб ser punido","OK","SAIR");
return 1;
}
public OnDialogResponse(playerid,dialogid,response)
{
if(dialogid == DIALOG_WELCOME && response == 0)
{
SendClientMessage(playerid,0xFF0000AA,"Vocк foi kickado por escolher a opзгo SAIR no dialog welcome.");
Kick(playerid);
}
if(dialogid == DIALOG_WELCOME && response == 1)
{
SendClientMessage(playerid,0x00FF00AA,"Agora vocк pode jogar.");
}
return 1;
}
Um exemplo
Re: [Ajuda]Sair do dialog -
Xapita_Halls - 17.11.2010
topo gm:
[code]
new Sair;
new Registrar;
Errado :O
tenta assm:
Код:
{
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_MSGBOX, "Bem vindo", "Bem vindo Ao server\nRegistre-se ou saia!", "Registrar", "Sair");
gPlayerAccount[playerid] = 0;
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Bem-vindo, %s\nVocк nгo tem umas conta.\nPor favor se registre:",regname);
}
em ondialogresponse:
Код:
if(dialogid == 12345)
{
if(response)
{
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_GREEN, "Voce saiu foi kikado");
Kick(playerid); //se ele clica em sair ele kika
}
PS: SУ BASE
Re: [Ajuda]Sair do dialog -
TiagoPS - 17.11.2010
pawn Код:
if(dialogid == IDAKI)
{
if(response)//Primeiro Botгo
{
//Coloque Aqui O Que Irб Acontecer Caso Ele Clique No Primeiro Botгo
return 1;
}
else//Segundo Botгo
{
//Coloque Aqui O Que Irб Acontecer Caso Ele Clique No Segundo Botгo
return 1;
}
}