Need the OnDialogResponse. - 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: Need the OnDialogResponse. (
/showthread.php?tid=220062)
Need the OnDialogResponse. -
SchurmanCQC - 02.02.2011
Hello, its me again.

I need the OnDialogResponse for the following.
pawn Код:
ShowPlayerDialog(playerid,2600,DIALOG_STYLE_MSGBOX,"Welcome!","{FFFFFF}Welcome to {0000FF}Bad Company Gaming{FFFFFF}, we hope you'll enjoy your stay. Click Okay to continue to class selection, or click Leave to leave.","Okay","Leave");
Thanks, all help is appreciated.
Re: Need the OnDialogResponse. - [BEP]AcerPilot - 02.02.2011
wiki.sa-mp.com/wiki/OnDialogResponse
Re: Need the OnDialogResponse. -
Rock18 - 02.02.2011
Код:
if(dialogid == 2600)
{
if(response)
{
new string[250];
format(string, sizeof(string), "~r~Enjoy");
GameTextForPlayer(playerid, string, 5000, 4);
}
else
{
new string[300];
format(string, sizeof(string), "~g~You Chose to leave ~r~Bye!");
GameTextForPlayer(playerid, string, 999999999, 4);
Kick(playerid);
}
return 1;
}
I thinks this should work