SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 29/05/2019, 03:36 PM   #1
keytruth
Little Clucker
 
Join Date: May 2019
Posts: 22
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: 2.1)

Documentation:
pawn Code:
// There is a single callback:

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;
}

/* There are 4 types of dialog settings:

   Return value is not considered.
   name Is the name of the dialog that will be configured. */


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

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

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

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

/* As well as an additional useful feature:

   Hides the displayed dialog.*/



HidePlayerDialog(playerid);

// Usage example:

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

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


Last edited by keytruth; 13/11/2019 at 09:40 AM.
keytruth is offline   Reply With Quote
Old 06/06/2019, 04:53 AM   #2
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 575
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 01/07/2019, 12:15 AM   #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
Old 13/11/2019, 09:41 AM   #4
keytruth
Little Clucker
 
Join Date: May 2019
Posts: 22
Reputation: 2
Default Re: KDLG Unique dialog processor!

Updated include. Now you can not use the identifiers of the dialogs, but their names.
__________________
#saveDL

My creations:

keytruth 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 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 01:53 PM.


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