Hello, i need to know how to add doublejump and autobhop for only one player in my XP mod.
I have this code for autobunnyhop:
PHP Code:
if(Level[id] == 60)
{
new CsArmorType:armortype;
if (cs_get_user_armor(id, armortype) <= 100)
{
new CsArmorType:armortype;
cs_set_user_armor(id, cs_get_user_armor(id, armortype) + 30, armortype);
}
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 185)
set_user_gravity(id, 0.7)
cs_set_user_money(id, (cs_get_user_money(id) + 1000))
cs_set_user_nvg(id, 1)
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)
}
But it doesn't work, please also, if you can, include 2 codes, with:
1st code: Autobhop
2nd code: Autobhop + Doublejump
Thanks!
__________________