SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 29/05/2019, 02:36 PM   #1
keytruth
Little Clucker
 
Join Date: May 2019
Posts: 5
Reputation: 0
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 02:46 PM.
keytruth is offline   Reply With Quote
Old 06/06/2019, 03:53 AM   #2
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 569
Reputation: 69
Default Re: KDLG Unique dialog processor!

What exactly makes this dialog processor unique? Looks like FDLG/EasyDialog with minimal changes. Also, does it support string's as the dialog reference? (Example: DIALOG:dlg_login)
__________________
Chaprnks is offline   Reply With Quote
Old 30/06/2019, 11:15 PM   #3
Nickk888
Little Clucker
 
Nickk888's Avatar
 
Join Date: Oct 2011
Location: Germany
Posts: 28
Reputation: 37
Default Re: KDLG Unique dialog processor!

It's very similar to my system i created a while ago: https://forum.sa-mp.com/showthread.php?t=656905
Nickk888 is offline   Reply With Quote
Reply

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 07:45 PM
[Tutorial] PAWN Pre-Processor - Pre-processor alternatives - Part 5/7 Misiur Tutorials 0 14/04/2015 09:13 PM
[Include] B-Dial - Fast Dialog Response Processor BigETI Includes 35 15/10/2012 09:38 PM
[Include] RDLG - Reliable/Fast Dialog Processor aRoach Includes 27 06/03/2012 02:17 PM
Unique DIALOG id ajwar Help Archive 4 11/02/2011 12:13 PM


All times are GMT. The time now is 12:42 PM.


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