Raised This Month: $ Target: $400
 0% 

Help To Give BunnyHop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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