Anti-Tune hack
#1

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;
}
Reply
#2

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;
}
Reply
#3

Still doesn't ban me :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)