AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   AutoBhop / Doublejump only for one player. (https://forums.alliedmods.net/showthread.php?t=224467)

Ardonicek 08-24-2013 17:44

AutoBhop / Doublejump only for one player.
 
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!

Baws 08-28-2013 02:10

Re: AutoBhop / Doublejump only for one player.
 
Do you mean 1 player that will have access to it? or any player?


All times are GMT -4. The time now is 19:07.

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