[Include] GetPlayerDialogID + Anti-DialogHack
#1

GetPlayerDialogID v2

Also, with Anti-DialogHack

Quote:
Originally Posted by wups
View Post
Without this, clients can change their DIALOGID with some specific programs(and for example evade login).

I was scripting, and I thought this function would be very useful in some specific cases.

ChangeLog:
Quote:

Version 2:
-Bug fixes.
-Anti DialogHack.
-Using PVars, so filterscript support.
Version 1:
-Initial release.

Usage:
Firstly, copy both include files into /pawno/includes
Insert this code on top of your game mode after #include <a_samp>
pawn Code:
#include <GPDID>
That's it! You're ready to go. No script modifications are needed, since the script is Plug&Play.
How to use the function?
pawn Code:
public OnPlayerCommandText(playerid,cmdtext[])
{
    new ID = GetPlayerDialogID(playerid);
    if(ID != -1) // in case a player sees the dialog
    {
        SendClientMessage(playerid,-1,"No dialog evading!");
        return 0;
    }
    return 1;
}
Installing:
Download and save to pawn/includes folder!

Download:
Version 2.2
Version 1.0

Feel free to do anything you want with it.
Reply


Messages In This Thread
GetPlayerDialogID + Anti-DialogHack - by wups - 16.09.2011, 18:54
Re: GetPlayerDialogID - by Wesley221 - 16.09.2011, 19:02
Re: GetPlayerDialogID - by Raimis_R - 16.09.2011, 19:05
Re: GetPlayerDialogID - by =WoR=Varth - 16.09.2011, 19:06
Re: GetPlayerDialogID - by skullmuncher1337 - 16.09.2011, 19:08
Re: GetPlayerDialogID - by =WoR=Varth - 16.09.2011, 19:10
Re: GetPlayerDialogID - by wups - 16.09.2011, 19:15
Re: GetPlayerDialogID - by =WoR=Varth - 16.09.2011, 19:30
Re: GetPlayerDialogID - by RockandRol123 [PH] - 17.09.2011, 00:24
Re: GetPlayerDialogID - by wups - 17.09.2011, 08:16
Re: GetPlayerDialogID - by Hiddos - 17.09.2011, 08:20
Re: GetPlayerDialogID - by KoczkaHUN - 20.09.2011, 16:51
Re: GetPlayerDialogID - by Edvin - 20.09.2011, 17:49
Re: GetPlayerDialogID - by [MWR]Blood - 20.09.2011, 18:06
Re: GetPlayerDialogID - by wups - 21.09.2011, 11:35
Re: GetPlayerDialogID - by Lorenc_ - 21.09.2011, 11:38
Re: GetPlayerDialogID - by wups - 21.09.2011, 11:39
Re: GetPlayerDialogID - by Edvin - 21.09.2011, 11:39
Re: GetPlayerDialogID - by Y_Less - 21.09.2011, 14:22
Re: GetPlayerDialogID + Anti-DialogHack - by BaubaS - 21.09.2011, 14:52
Re : Re: GetPlayerDialogID + Anti-DialogHack - by Naruto_Emilio - 21.09.2011, 15:32
Re: Re : Re: GetPlayerDialogID + Anti-DialogHack - by wups - 21.09.2011, 16:32
Re: GetPlayerDialogID - by KoczkaHUN - 21.09.2011, 16:44
Re: GetPlayerDialogID - by wups - 21.09.2011, 17:34
Re: GetPlayerDialogID + Anti-DialogHack - by wups - 03.10.2011, 07:00
Re: GetPlayerDialogID + Anti-DialogHack - by System64 - 03.10.2011, 08:30
Re: GetPlayerDialogID + Anti-DialogHack - by wups - 03.10.2011, 09:26
Re: GetPlayerDialogID + Anti-DialogHack - by OKStyle - 13.10.2011, 08:27
Re : GetPlayerDialogID + Anti-DialogHack - by TheBest6 - 13.10.2011, 11:58
Re: GetPlayerDialogID + Anti-DialogHack - by Dredd - 14.10.2011, 11:04
Re: GetPlayerDialogID + Anti-DialogHack - by KoczkaHUN - 16.10.2011, 10:04
Re: GetPlayerDialogID + Anti-DialogHack - by Yousha - 21.06.2017, 08:13

Forum Jump:


Users browsing this thread: 4 Guest(s)