Raised This Month: $ Target: $400
 0% 

Help To Give BunnyHop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Niiick
Junior Member
Join Date: Mar 2011
Old 09-02-2012 , 16:59   Help To Give BunnyHop
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
    
    
item=dodaj_extra_item("\r[FkTs] \w Give BunnyHop",10,1)
    
}
public 
wybrano_item(id,item_id){
    if(
item_id==item){
        
        
entity_set_float(idEV_FL_fuser20.0);

        if (
entity_get_int(idEV_INT_button) & 2)
        {
            new 
flags entity_get_int(idEV_INT_flags);

            if (
flags FL_WATERJUMP)
            {
                return 
PLUGIN_CONTINUE;
            }
            if (
entity_get_int(idEV_INT_waterlevel) >= 2)
            {
                return 
PLUGIN_CONTINUE;
            }
            if(!(
flags FL_ONGROUND))
            {
                return 
PLUGIN_CONTINUE;
            }

            new 
Float:velocity[3];
            
entity_get_vector(idEV_VEC_velocityvelocity);
            
velocity[2] += 250.0;
            
entity_set_vector(idEV_VEC_velocityvelocity);

            
entity_set_int(idEV_INT_gaitsequence6);

            
entity_set_int(idEV_INT_gaitsequence6);
        }
        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
Attached Files
File Type: sma Get Plugin or Get Source (bb_bh.sma - 663 views - 1.1 KB)

Last edited by Niiick; 09-02-2012 at 17:04.
Niiick is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-02-2012 , 20:35   Re: Help To Give BunnyHop
Reply With Quote #2

RegisterHam(Ham_Jump, "player", "dudeDoneDidTheJumping")

There's plugins that do this. search a bit.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 09-03-2012 , 08:39   Re: Help To Give BunnyHop
Reply With Quote #3

you want to give/buy bunnyhop like to 1 player? if yes

you can do it with bool 33

and in roundend do false to all
daniel46 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode