SA-MP Forums Archive
Dialog Questions - Wrong one = kick - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Questions - Wrong one = kick (/showthread.php?tid=131551)



Dialog Questions - Wrong one = kick - Namaco - 03.03.2010

Aye there every one I need help with dialogs, I want to do a stuff when someone register on rp server when they finish writing they password and they press enter dialog will come up if they will chose wrong one they will be kicked?

Thank you!


Re: Dialog Questions - Wrong one = kick - Namaco - 04.03.2010

well i know how to make dialogs but i dont know how if someone chose wrong one they will be kicked


Re: Dialog Questions - Wrong one = kick - Rzzr - 04.03.2010

pawn Код:
if(!response)
{
Kick(playerid)
//Optional sendclientmessage to let them know
}
Something like that ?


Re: Dialog Questions - Wrong one = kick - Namaco - 04.03.2010

Like in sa-mp wiki i founded tut for it


simple this tested and worked

pawn Код:
if(!strcmp(cmdtext, "/drinks", true))
{
  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is it that you want?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel");
  return 1;
}
where do i add it?


Re: Dialog Questions - Wrong one = kick - woot - 04.03.2010

Into your gamemode source?


Re: Dialog Questions - Wrong one = kick - Calgon - 04.03.2010

Quote:
Originally Posted by Namaco
Like in sa-mp wiki i founded tut for it


simple this tested and worked

pawn Код:
if(!strcmp(cmdtext, "/drinks", true))
{
  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is it that you want?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel");
  return 1;
}
where do i add it?
Quote:

First, let's start off by showing the dialog on a command. Add this under OnPlayerCommandText:




Re: Dialog Questions - Wrong one = kick - Lejo - 04.03.2010

There's a few dialog tutorials around the forum. Use search, it'll explain how to make them properly.


Re: Dialog Questions - Wrong one = kick - [MWR]Blood - 04.03.2010

Example:
if(dialogid==Dialog_Example)
{
if(response)
{
SendClientMessage(playerid,COLOR_YELLOW,"Your Message Here"); //true one

}else
{
SendClientMessage(playerid,COLOR_YELLOW,"Your Message Here"); //wrong one
Kick(playerid);
}
}