VIP Auto Bhop

Vaata eelmist teemat Vaata järgmist teemat Go down

Kiibu * SteelSeries
Kiibu * SteelSeries
Algaja
Liitus : 05/03/2015
Postitusi : 0

PostitamineKiibu * SteelSeries 06.03.15 16:08

Tervist.
Kas kellegil oleks jagada minuga auto Bhop scripti VIPidele.
Tonight
Tonight

VIP Auto Bhop Vetera11
Liitus : 19/02/2012
Postitusi : 18000

PostitamineTonight 06.03.15 16:10

Kood:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define PLUGIN    "Admin AutoBhop"
#define VERSION "1337"
#define AUTHOR    "ConnorMcLeod"

new g_bAlive[33]
new g_bAdmin[33]

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    RegisterHam(Ham_Player_Jump, "player", "Player_Jump")

    register_event("Health", "Check_Alive", "b")
    register_event("ResetHUD", "Check_Alive", "b")
}

public client_putinserver(id)
{
    g_bAlive[id] = false
    g_bAdmin[id] = get_user_flags(id) & ADMIN_LEVEL_H
}

public Check_Alive(id)
{
    g_bAlive[id] = is_user_alive(id)
}

public Player_Jump(id)
{
    if( g_bAlive[id] && g_bAdmin[id] )
    {   
        static iOldButtons ; iOldButtons = entity_get_int(id, EV_INT_oldbuttons)
        if( iOldButtons & IN_JUMP )
        {
            entity_set_int(id, EV_INT_oldbuttons, iOldButtons & ~IN_JUMP)
            return HAM_HANDLED
        }
    }
    return HAM_IGNORED
}
Compile: http://www.amxmodx.org/webcompiler.cgi
Kiibu * SteelSeries
Kiibu * SteelSeries
Algaja
Liitus : 05/03/2015
Postitusi : 0

PostitamineKiibu * SteelSeries 06.03.15 20:12

Tonight kirjutas:
Kood:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define PLUGIN    "Admin AutoBhop"
#define VERSION "1337"
#define AUTHOR    "ConnorMcLeod"

new g_bAlive[33]
new g_bAdmin[33]

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    RegisterHam(Ham_Player_Jump, "player", "Player_Jump")

    register_event("Health", "Check_Alive", "b")
    register_event("ResetHUD", "Check_Alive", "b")
}

public client_putinserver(id)
{
    g_bAlive[id] = false
    g_bAdmin[id] = get_user_flags(id) & ADMIN_LEVEL_H
}

public Check_Alive(id)
{
    g_bAlive[id] = is_user_alive(id)
}

public Player_Jump(id)
{
    if( g_bAlive[id] && g_bAdmin[id] )
    {   
        static iOldButtons ; iOldButtons = entity_get_int(id, EV_INT_oldbuttons)
        if( iOldButtons & IN_JUMP )
        {
            entity_set_int(id, EV_INT_oldbuttons, iOldButtons & ~IN_JUMP)
            return HAM_HANDLED
        }
    }
    return HAM_IGNORED
}
Compile: http://www.amxmodx.org/webcompiler.cgi

Tänud.

Vaata eelmist teemat Vaata järgmist teemat Tagasi üles

Soovid vestluses osaleda?

Selleks logi sisse või tee endale kasutaja.

Liitu foorumiga

Tee endale kasutaja ning osale aruteludes.


Tee uus kasutaja

Logi sisse

Omad foorumis juba kasutajat? Logi sisse.


Logi sisse

 
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele