AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help To Give BunnyHop (https://forums.alliedmods.net/showthread.php?t=195022)

Niiick 09-02-2012 16:59

Help To Give BunnyHop
 
1 Attachment(s)
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 :(

Liverwiz 09-02-2012 20:35

Re: Help To Give BunnyHop
 
RegisterHam(Ham_Jump, "player", "dudeDoneDidTheJumping")

There's plugins that do this. search a bit.

daniel46 09-03-2012 08:39

Re: Help To Give BunnyHop
 
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


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

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