Jump to content
  • 0

Problema anti-hack


marius11

Question

Problema intalnita (descriere): Daca playeri au arme sistemul de antihack ii detecteaza , chiar daca au armele din joc
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

 

stock hackerTrigger(playerid) {
    if(playerVariables[playerid][pTabbed] == 0) {
        playerVariables[playerid][pHackWarnings]++;
        playerVariables[playerid][pHackWarnTime] = 1;

        if(playerVariables[playerid][pHackWarnings] >= 3) {

            new
                wep = GetPlayerWeapon(playerid),
                reason[94];

            GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);

   format(reason, sizeof(reason), "Warning: {FFFFFF}%s may possibly be weapon hacking (%s).", szPlayerName, WeaponNames[wep]);
            submitToAdmins(reason, COLOR_HOTORANGE);

           /* if(playerVariables[playerid][pHackWarnings] >= MAX_WEAPON_HACK_WARNINGS) {
                format(reason, sizeof(reason), "Weapon Hacking (%s).", WeaponNames[wep]);
                scriptBan(playerid, reason);
            }*/
        }
    }
    return 1;
}

si

 

    if(strcmp(cmdtext, "/attack", true) == 0)
    {
        return 1;
    }
    else
    {
        playerVariables[playerid][pSpamCount]++;
    }

    new
        charCount[3];

    for(new i; i < strlen(cmdtext); i++) switch(cmdtext) {
        case '0' .. '9': charCount[0]++;
        case '.': charCount[1]++;
        case ':': charCount[2]++;
    }

    if(charCount[0] > 8 && charCount[1] >= 3 && charCount[2] >= 1 && playerVariables[playerid][pAdminLevel] < 1) {
  format(szMessage, sizeof(szMessage),"Warning: {FFFFFF}%s may be server advertising: '%s'.", szPlayerName, cmdtext);
        submitToAdmins(szMessage, COLOR_HOTORANGE);
        return 0;
    }
    return 1;
}

 


Imagini / Video (optional):
Ati incercat sa rezolvati singur?:nu stiu ce pot sa ii fac

Edited by marius11
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

cauta pe google balkan anticheat este unu din cele mai usoare si puternice anticheat-uri il folosesc de 1 an si nu am avut probleme o sa ai o functie la comanda /aod , adauga acea functie la orice cmd din gm-u tau orice gen /gethere /goto /healall /sethp /givegun etc... orice coincide cu un hack.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.