Raised This Month: $ Target: $400
 0% 

AutoBhop / Doublejump only for one player.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 08-24-2013 , 17:44   AutoBhop / Doublejump only for one player.
Reply With Quote #1

Hello, i need to know how to add doublejump and autobhop for only one player in my XP mod.

I have this code for autobunnyhop:
PHP Code:
    if(Level[id] == 60
    { 
        new 
CsArmorType:armortype;
        if (
cs_get_user_armor(idarmortype) <= 100)
    {
        new 
CsArmorType:armortype;
        
cs_set_user_armor(idcs_get_user_armor(idarmortype) + 30armortype);
    }
    
set_user_rendering(idkRenderFxNone000kRenderTransAlpha185)
    
set_user_gravity(id0.7)
    
cs_set_user_money(id, (cs_get_user_money(id) + 1000))
    
cs_set_user_nvg(id1)
    new 
flags entity_get_int(idEV_INT_flags)

        if (
flags FL_WATERJUMP)
            return 
PLUGIN_CONTINUE
        
if ( entity_get_int(idEV_INT_waterlevel) >= )
            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)
    } 
But it doesn't work, please also, if you can, include 2 codes, with:
1st code: Autobhop
2nd code: Autobhop + Doublejump


Thanks!
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
Baws
Veteran Member
Join Date: Oct 2012
Old 08-28-2013 , 02:10   Re: AutoBhop / Doublejump only for one player.
Reply With Quote #2

Do you mean 1 player that will have access to it? or any player?
__________________
Like my clean plugins and work?
Baws is offline
Reply


Thread Tools
Display Modes

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 19:07.


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