VIP Auto Bhop
Lehekülg 1, lehekülgi kokku 1 • Share
- Kiibu * SteelSeriesAlgaja
- Liitus : 05/03/2015
Postitusi : 0
Tervist.
Kas kellegil oleks jagada minuga auto Bhop scripti VIPidele.
Kas kellegil oleks jagada minuga auto Bhop scripti VIPidele.
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
- 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
}
- Kiibu * SteelSeriesAlgaja
- Liitus : 05/03/2015
Postitusi : 0
Tonight kirjutas:Compile: http://www.amxmodx.org/webcompiler.cgi
- 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
}
Tänud.
Soovid vestluses osaleda?
Selleks logi sisse või tee endale kasutaja.
Lehekülg 1, lehekülgi kokku 1
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele