PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <ammopacks.inc>
#include <fun>
#include <cstrike>
#include <engine>
#define PLUGIN "Item_nr1"
#define VERSION "1.0"
#define AUTHOR "G[o]Q"
new item
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
item=dodaj_extra_item("\r[FkTs] \w Give BunnyHop",10,1)
}
public wybrano_item(id,item_id){
if(item_id==item){
entity_set_float(id, EV_FL_fuser2, 0.0);
if (entity_get_int(id, EV_INT_button) & 2)
{
new flags = entity_get_int(id, EV_INT_flags);
if (flags & FL_WATERJUMP)
{
return PLUGIN_CONTINUE;
}
if (entity_get_int(id, EV_INT_waterlevel) >= 2)
{
return PLUGIN_CONTINUE;
}
if(!(flags & FL_ONGROUND))
{
return PLUGIN_CONTINUE;
}
new Float:velocity[3];
entity_get_vector(id, EV_VEC_velocity, velocity);
velocity[2] += 250.0;
entity_set_vector(id, EV_VEC_velocity, velocity);
entity_set_int(id, EV_INT_gaitsequence, 6);
entity_set_int(id, EV_INT_gaitsequence, 6);
}
return PLUGIN_HANDLED;
}
I'm having trouble creating this item, I would buy that when a player is active up to the Bunnyhop him, and ends when the round ends up.
Sorry for my bad english