SA-MP Forums Archive
anti dialog hack - 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)
+--- Thread: anti dialog hack (/showthread.php?tid=627897)



anti dialog hack - MerryDeer - 03.02.2017

Hi,

There is hack that player can prevent from dialog showen, how to check if dialog was show but player with cheat off and don't get dialog window?


Re: anti dialog hack - SuperTramp - 06.02.2017

Optional callbacks (to put in your GameMode)
Код:
public OnDialogSpoof(playerid, dialogid, SpooflessDialogs_dialogid)
{
    // What do you want to do with the cheater? Ban? Kick?
    return 0; // Prevent dialog spoof
}
You need to have the includes y_hooks (you can extract everything to your includes folder) and nhooks for this include to work!

Download

In your GameMode:

Код:
#include <YSI\y_hooks>
#include <nhooks>
#include <SpooflessDialogs> // Put this line before any includes that make use of dialogs
In all FilterScripts that make use of dialogs:

Код:
#define FILTERSCRIPT
#include <YSI\y_hooks>
#include <nhooks>
#include <SpooflessDialogs> // Put this line before any includes that make use of dialogs
Do you like it? Any suggestions?