[Question] How to make this in dialog?
#1

Код:
	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!!
Reply
#2

Код:
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");
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)