←  Pytania

AMXX.pl: Support AMX Mod X i SourceMod

»

Jak zrobic klase z auto bunny hopem

Locked

Letnie Chamskie B00m's Photo Letnie Chamskie B00m 11.08.2010

Jak w temacie proszę o pomoc
Quote

  • +
  • -
Onyke's Photo Onyke 11.08.2010

Znajdz
//Before freeze_ended check

Dodaj nad

if (entity_get_int(id, EV_INT_button) & 2 && player_class[id]==Klasa)
{
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)
}

Chyba powinno działać :D
Quote

Letnie Chamskie B00m's Photo Letnie Chamskie B00m 12.08.2010

dzięki
Quote

  • +
  • -
Onyke's Photo Onyke 12.08.2010

Zapomnialem jeszcze zebys dodal gdzies do #define
#define FL_WATERJUMP (1<<11)
#define FL_ONGROUND (1<<9)
Quote
Locked