#include #include #include #include #include #include #define DMG_BULLET (1<<1) new skoki[33]; new bool:ma_klase[33]; new const nazwa[] = "Ninja [Premium]"; new const opis[] = "1/1 z Kosy , Podczas Kucania Nie Widoczny , Grawitacja Na 450 , 2 Skoki"; new const bronie = 1< 20.0) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); return HAM_IGNORED; } public fwPrethink_Niewidzialnosc(id) { if(!ma_klase[id]) return; new button = get_user_button(id); if( button & IN_DUCK ) { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0); } else { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255); } } public fwSpawn_Grawitacja(id) { if(ma_klase[id]) entity_set_float(id, EV_FL_gravity, 450.0/800.0); } public fwCmdStart_MultiJump(id, uc_handle) { if(!is_user_alive(id) || !ma_klase[id]) return FMRES_IGNORED; new flags = pev(id, pev_flags); if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]) { skoki[id]--; new Float:velocity[3]; pev(id, pev_velocity,velocity); velocity[2] = random_float(265.0,285.0); set_pev(id, pev_velocity,velocity); } else if(flags & FL_ONGROUND) skoki[id] = 1; return FMRES_IGNORED; }