Anti s0nicTz?
#1

Theres a script that block s0nicTz?
Thank you.
Reply
#2

Nope.

But a good Anticheat can help you a lot.
Reply
#3

Im basically certain that that mod is already outdated, and not functional..
Reply
#4

Quote:
Originally Posted by Excelize
Посмотреть сообщение
Im basically certain that that mod is already outdated, and not functional..
You're wrong, it still works.
Reply
#5

SA-MP doesn't offer pretty much anything to detect if the user is running any third party software in the background, so there's really no possibility of getting to know if the user is running that software or not. What you can do is just make an anti cheat so people can't exploit the stuff on your server.

There's currently a bug in SA-MP that resides on OnPlayerInteriorChange and what it does is, people that use that public function often get their servers lagged because users can send interiors by themselves and by doing that they can lag the server since there's no control on the packets that are sent from the client to the server so the clients can spam all they want.
The main purpose of OnPlayerInteriorChange is to get called every time the player changes their interior.

You can fix that by doing the following:

pawn Код:
/* Defines */
#define INTERIOR_COOLDOWN 2
#define MAX_INTERIOR_WARNS 8
//-----------

/* New's */
new interiorWarns[MAX_PLAYERS];
//-----------

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    onInteriorFloodCheck(playerid);
    return 1;
}

/* Functions */
onInteriorFloodCheck(playerid) {
        new time = GetPVarInt(playerid, "InteriorCoolDown");
        new timenow = gettime();
        if(INTERIOR_COOLDOWN-(timenow-time) > 0) {
                assignAndCheckInteriorWarns(playerid);
                return 1;
        }
        interiorWarns[playerid] = 0; //If the above doesn't happen
        SetPVarInt(playerid, "InteriorCoolDown", gettime());
        return 1;
}
assignAndCheckInteriorWarns(playerid) {
        if(++interiorWarns[playerid] > MAX_INTERIOR_WARNS) {
                hackKick(playerid, "Spamming Interiors", "Interior Spamming");
        }
        return 1;
}
Check this for more:
https://github.com/colistro123/Pawn/...oodcontrol.pwn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)