SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 29/05/2019, 03:36 PM   #1
keytruth
Little Clucker
 
Join Date: May 2019
Posts: 20
Reputation: 2
Thumbs up KDLG Unique dialog processor!

KDLG

This is a unique dialog processor, in which you will be more comfortable in your scenario and, perhaps, the dialogs will work faster. It is very easy to use, just read the documentation.

(Version: 1.0)

Documentation:
HTML Code:
// There are two callbacks.

public OnDialogReceived(playerid, dialogid)
{
	// It works before the dialog appears to the player.

    // When the return value is 0, the dialog is not shown to the player.
 	// When returning a value of 1, the dialog is successfully demonstrated to the player.

	return 1;
}

public OnDialogPerformed(playerid, dialogid)
{
	// It works after demonstrating the dialog to the player.

	// Return value is not considered.
	return 1;
}


// There are 4 types of dialog settings.

// Return value is not considered.
// 1 - This is the number of the dialog that will be configured.

DIALOG:1(playerid, response, listitem, inputtext[])
{
	return 1;
}

DLG:1(playerid, response, listitem, inputtext[])
{
	return 1;
}

dialog(1, playerid, response, listitem, inputtext[])
{
	return 1;
}

dlg(1, playerid, response, listitem, inputtext[])
{
	return 1;
}


// Work example:


public OnPlayerConnect(playerid)
{
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Notification", "Would you like to welcome all the players?", "Yes", "No");
	return 1;
}

DLG:1(playerid, response, listitem, inputtext[])
{
	if(response) SendClientMessageToAll(-1, "The connected player greeted everyone!");
	return 1;
}


Last edited by keytruth; 30/05/2019 at 03:46 PM.
keytruth is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] eXtended INI Processor - Fast & Feature Rich INI Processor Yashas Includes 28 01/09/2015 08:45 PM
[Tutorial] PAWN Pre-Processor - Pre-processor alternatives - Part 5/7 Misiur Tutorials 0 14/04/2015 10:13 PM
[Include] B-Dial - Fast Dialog Response Processor BigETI Includes 35 15/10/2012 10:38 PM
[Include] RDLG - Reliable/Fast Dialog Processor aRoach Includes 27 06/03/2012 03:17 PM
Unique DIALOG id ajwar Help Archive 4 11/02/2011 01:13 PM


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.