[Plugin] HS Aimbot Detector
Results 1 to 6 of 6
  1. #1
    Senior Member Array
    Join Date
    May 2020
    Karma
    0

    Default HS Aimbot Detector

    Plugin broji uzastopnih Head Shot ubistva i ukoliko dostigne broj kvara hs_max kaznjava igraca na 3 nacina:

    1. Samo logovanje.
    2. Kick.
    3. Ban za stalno.


    Plugin takodje radi i na DM.


    Kvarovi:
    1. amx_cvar hs_max (default) 10 (ovaj kvar treba podesiti po broju slotova i da li je DM Mod). Idealno (AWP: 10) (PUB: 12) (DM: 15)
    2. amx_cvar hs_punish (default) 1
    3. amx_cvar hs_dm (default) 0 (Da li je ukljucen DM MOD na serveru?)



    PHP Code:
    #include <amxmodx>

    #define PLUGIN "HS Aimbot Detector"
    #define VERSION "1.0"
    #define AUTHOR "InsaNe"

    new szAuthID[32]
    new 
    szAuthName[32]
    new 
    szAuthIP[32]
    new 
    gHeadShots[32]

    public 
    plugin_init()
    {
        
    register_plugin(PLUGINVERSIONAUTHOR)
        
        
    register_cvar("hs_max""10")
        
    register_cvar("hs_punish""1")
        
    register_cvar("hs_dm""0")
        
        if(
    get_cvar_num("hs_dm") == 0) {
        
    register_event("HLTV""Event_NewRound""a""1=0""2=0")
        }
        
        if(
    get_cvar_num("hs_dm") == 1) {
        
    set_task(120.0"Event_NewRound"___"b"_)
        }
    }

    public 
    client_authorized(id)
    {
        
    get_user_authid(idszAuthID[id] , charsmax(szAuthID))
        
    get_user_name(idszAuthNamecharsmax(szAuthName))
        
    get_user_ip(idszAuthIPcharsmax(szAuthIP))
    }

    public 
    client_damage(attackervictimdamagewpnindexhitplace)
    {
        if(
    attacker == victim) return
        
        if(
    hitplace == HIT_HEAD && !is_user_alive(victim)) {
        
    gHeadShots[attacker]++
        }

        new 
    maxheadshots get_cvar_num("hs_max")
        
        if(
    gHeadShots[attacker] > maxheadshots) {
        
    Punish(attacker)
        }
    }

    public 
    Punish(id)
    {
        
        if(
    get_cvar_num("hs_punish") == 0) {
        
    log_to_file("HSAimbotDetector.txt""Player: ^"%s^" SteamID: ^"%s^" IP: ^"%s^" was detected with Aimbot!"szAuthNameszAuthIDszAuthIP)
        }

        if(
    get_cvar_num("hs_punish") == 1) {
        
    server_cmd("kick #%d ^"Aimbot Detected^"",get_user_userid(id))
        
    log_to_file("HSAimbotDetector.txt""Player: ^"%s^" SteamID: ^"%s^" IP: ^"%s^" was detected with Aimbot! The user was kicked!"szAuthNameszAuthIDszAuthIP)
        }

        if(
    get_cvar_num("hs_punish") == 2) {
        
    server_cmd("amx_ban #%d 0 ^"Aimbot Detected^"",get_user_userid(id))
        
    log_to_file("HSAimbotDetector.txt""Player: ^"%s^" SteamID: ^"%s^" IP: ^"%s^" was detected with Aimbot! The user was banned permanently!"szAuthNameszAuthIDszAuthIP)
        }
    }

    public 
    Event_NewRound()
    {
        
    arrayset(gHeadShots032)
    }

    public 
    client_connect(id)
    {
        
    gHeadShots[id] = 0
    }

    public 
    client_diconnect(id)
    {
        
    gHeadShots[id] = 0

    Last edited by InsaNe Shone; 29-06-2020 at 21:54.

  2. #2
    Member Array
    Join Date
    Nov 2015
    Location
    Zagreb
    Age
    32
    Karma
    0

    Default

    To računa u jednoj rundi?

  3. #3
    Senior Member Array
    Join Date
    May 2020
    Karma
    0

    Default

    Quote Originally Posted by rena_zg View Post
    To računa u jednoj rundi?
    Napisao sam u OP. Broji uzastopne HS-ove, ako je pub: da 1 runda. Ako je DM (nema runde), zato sam i napisao (ponavljam se), da treba podesiti cvar "hs_max" po broju slotova i moda (DM). Cak sam napisao i idealne cvarove za slotove i MOD.


    Quote Originally Posted by InsaNe Shone View Post
    Plugin takodje radi i na DM.

    Kvarovi:
    1. amx_cvar hs_max (default) 10 (ovaj kvar treba podesiti po broju slotova i da li je DM Mod). Idealno (AWP: 10) (PUB: 12) (DM: 15)
    2. amx_cvar hs_punish (default) 1
    3. amx_cvar hs_dm (default) 0 (Da li je ukljucen DM MOD na serveru?)

    Cak iako nisi siguran u moje proracune u vezi idealnih cvara (hs_max), podesi kvar da samo loguje, testiraj. Po meni je idealan za Aimbot, nema potrebe za modulima i glupostima, prost plugin, ipak to je samo moj stav Zop!

  4. #4
    Senior Member Array
    Join Date
    Sep 2013
    Location
    Bihać
    Age
    28
    Karma
    11

    Default

    hm.. moglo bi se i ovo ubaciti da se zastiti na max

  5. #5
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    14

    Default

    Code:
    arrayset(gHeadShots, 0, 33)
    ->
    Code:
    arrayset(gHeadShots, 0, 32)
    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

  6. #6
    Senior Member Array
    Join Date
    May 2020
    Karma
    0

    Default

    Quote Originally Posted by SkazzY View Post
    Code:
    arrayset(gHeadShots, 0, 33)
    ->
    Code:
    arrayset(gHeadShots, 0, 32)
    Update-ovan OP

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •