
Po zainstalowaniu pluginu na serwerze trzymając kucanie + skok skacze się wyżej.
#include
#include
// make sure u leave the '.0' at the end of the number
// or you will get compile errors :)
#define HIGH_JUMP_SPEED 300.0
new bool:g_HighJump[32];
public plugin_init()
{
register_plugin("High Jump", "1.0", "Hunter-Digital");
register_forward(FM_PlayerPreThink, "fwd_PlayerPreThink");
register_forward(FM_PlayerPostThink, "fwd_PlayerPostThink");
}
public fwd_PlayerPreThink(id)
{
if(is_user_alive(id) && (pev(id, pev_flags) & FL_ONGROUND))
{
static button, oldbuttons;
button = pev(id, pev_button);
oldbuttons = pev(id, pev_oldbuttons);
if((oldbuttons & IN_DUCK || button & IN_DUCK) && (button & IN_JUMP))
g_HighJump[id-1] = true;
else
g_HighJump[id-1] = false;
}
return FMRES_IGNORED;
}
// by Grajkownia.com
public fwd_PlayerPostThink(id)
{
if(is_user_alive(id) && g_HighJump[id-1])
{
static Float:velocity[3];
pev(id, pev_velocity, velocity);
velocity[2] = HIGH_JUMP_SPEED;
set_pev(id, pev_velocity, velocity);
g_HighJump[id-1] = false;
}
return FMRES_IGNORED;
}
- Jak skompilować plugin AMX MOD X (plik dodatkowo w załączniku).







Do góry









