Posts: 723
Threads: 366
Joined: Jun 2016
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?
Posts: 63
Threads: 9
Joined: Aug 2016
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?