Problem with Dialog Spoof
#2

When does the message appear? When you do /rapid or when you click on a listitem?

Show us the code for spoofing dialogs.

Код:
CMD:rapid(playerid, params[])
{
    if(PlayerInfo[playerid][pFaction] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pFaction] == 17 || PlayerInfo[playerid][pLeader] == 17)
    {
        SetPVarInt(playerid, "dialog", RRMENU);
        printf("DialogID == %d || PVar Dialog: %d", RRMENU, GetPVarInt(playerid, "dialog"));
        ShowPlayerDialogEx(playerid, RRMENU, DIALOG_STYLE_LIST, "Rapid Recovery","Rapid Uniforms\nRapid Equipment\nRefill Health($1000)\nKevlar Vest($1000)\nMechanic Job", "Select", "Cancel");
    }
    return 1;
}
Tell me what it prints.

__________________________________________________ _________________

Found this on your previous thread, use this code and tell me the debug:

Код:
if(GetPVarInt(playerid, "dialog") != dialogid) { // Confirm the dialogid matches what we have in the PVar
        format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid);
        ABroadCast(COLOR_YELLOW, string, 2);

        printf("Debug 2: DialogID == %d || PVar Dialog: %d", dialog, GetPVarInt(playerid, "dialog"));
    
        format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid));
        AddAutomatedFlag(playerid, string);

        format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response);
        Log("logs/crash.log", string);

        return 1;
    }
Reply


Messages In This Thread
Problem with Dialog Spoof - by cedizon - 19.05.2014, 04:38
Re: Problem with Dialog Spoof - by jihadmeneer - 19.05.2014, 08:19
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 00:56
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 01:04
Re: Problem with Dialog Spoof - by denom - 20.05.2014, 04:48
Re: Problem with Dialog Spoof - by jihadmeneer - 20.05.2014, 05:42
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 06:38

Forum Jump:


Users browsing this thread: 1 Guest(s)