Dialog Questions - Wrong one = kick
#1

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!
Reply
#2

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

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

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?
Reply
#5

Into your gamemode source?
Reply
#6

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:

Reply
#7

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

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);
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)