SA-MP Forums Archive
Anti-Tune hack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti-Tune hack (/showthread.php?tid=448129)



Anti-Tune hack - itsCody - 03.07.2013

I've tested this in my server, and I tried it with So.....
For some reason it won't detect the component being attached to the car to even ban me. Is there anyway this can be attached to client side to detect its attachments?

pawn Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
    new str[256];
    new ID;
    new currentveh;
    currentveh = GetPlayerVehicleID(playerid);
    if(GetPlayerInterior(playerid) == 0)
    {
        SendClientMessage(playerid,COLOR_WHITE,"{CC0000}[NOTICE] {FFFFFF}You've been banned from the server. Reason: Tune Hacks.");
        format(str,sizeof(str),"{B30000}[SERVER] {FFFFFF}%s[%d] has banned from the server. (Tune Hacks).",playerid,PlayerName(ID));
        SendClientMessageToAll(0x33AA33AA,str);
        BanEx(playerid, "Tune Hack");
        DestroyVehicle(currentveh);
    }
    return 1;
}



Re: Anti-Tune hack - Cjgogo - 03.07.2013

Urgh, try this:

pawn Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
    if(GetPlayerInterior(playerid) == 0)
    {
        new str[256];
        SendClientMessage(playerid,COLOR_WHITE,"{CC0000}[NOTICE] {FFFFFF}You've been banned from the server. Reason: Tune Hacks.");
        format(str,sizeof(str),"{B30000}[SERVER] {FFFFFF}%s[%d] has banned from the server. (Tune Hacks).",playerid,PlayerName(playerid));
        SendClientMessageToAll(0x33AA33AA,str);
        DestroyVehicle(vehicleid);
        BanEx(playerid, "Tune Hacks!!!");
    }
    return 1;
}



Re: Anti-Tune hack - itsCody - 03.07.2013

Still doesn't ban me :/