Posts: 510
Threads: 49
Joined: Apr 2009
Reputation:
0
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!
Posts: 510
Threads: 49
Joined: Apr 2009
Reputation:
0
well i know how to make dialogs but i dont know how if someone chose wrong one they will be kicked
Posts: 785
Threads: 22
Joined: Jun 2007
Reputation:
0
Into your gamemode source?
Posts: 6,129
Threads: 36
Joined: Jan 2009
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:
|
Posts: 138
Threads: 3
Joined: Jan 2010
Reputation:
0
There's a few dialog tutorials around the forum. Use search, it'll explain how to make them properly.
Posts: 2,268
Threads: 89
Joined: Apr 2009
Reputation:
0
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);
}
}