SA-MP Forums Archive
[Question] How to make this in dialog? - 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: [Question] How to make this in dialog? (/showthread.php?tid=172496)



[Question] How to make this in dialog? - GBLTeam - 30.08.2010

Код:
	if(strcmp(cmd, "/pravila", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    SendClientMessage(playerid, COLOR_GREEN,"_______________ PRAVILA _______________");
		    SendClientMessage(playerid, COLOR_LIGHTRED,"Nema DM ");
		    SendClientMessage(playerid, COLOR_LIGHTRED,"Nema Bunny Hop (Skakanje) ");
		    SendClientMessage(playerid, COLOR_LIGHTRED,"Nema Drive-By");
		    SendClientMessage(playerid, COLOR_LIGHTRED,"Nema hodanja sa oruzjem u ruci");
		    SendClientMessage(playerid, COLOR_LIGHTRED,"Drzite se Role Play-a");
		    SendClientMessage(playerid, COLOR_LIGHTRED,"Vise na www.croatian-mafia.info");
		    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________ ");
		}
		return 1;
	}
I want this command to make in dialog like when i type /pravila to give me to choose if i want DeathMatch if powergame and others. Please Help . Thanks!!


Re: [Question] How to make this in dialog? - Sascha - 30.08.2010

Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Nema DM\nNema Bunny Hop\nNema Drive-By\nNema hodanja sa oruzje, u ruci\nDrzite se Role Play-a\nVise na www.croatiam-mafia.info", "Ok", "Cancel");



Re: [Question] How to make this in dialog? - mrcoolballs - 30.08.2010

pawn Код:
if(strcmp(cmd, "/pravila", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            ShowPlayerDialog(playerid,12321,DIALOG_STYLE_MSGBOX,"Write everything in here!!!","Ok","Cancel"
}
        return 1;
    }
then go down to onplayerdialog or somethin at the very bottom and write
pawn Код:
if(dialogid == 12321)
{
if(response)
{
}
else
{
}
return 1;
}
sorry untested, i just made it up quickly it should work though