Raised This Month: $ Target: $400
 0% 

Engine ----> fakemeta


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
_lol_
Senior Member
Join Date: Apr 2009
Old 05-22-2009 , 13:49   Re: Engine ----> fakemeta
Reply With Quote #7

it doesnt work, what is bad

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

new jumpnum[33] = 0
new bool:dojump[33] = false

public plugin_init()
{
    
register_plugin("MultiJump","1.1","MasI")
    
register_cvar("amx_maxjumps","50")
}

public 
client_putinserver(id)
{
    
jumpnum[id] = 0
    dojump
[id] = false
}

public 
client_disconnect(id)
{
    
jumpnum[id] = 0
    dojump
[id] = false
}

public 
client_PreThink(id)
{
    if(!
is_user_alive(id)) 
        return 
PLUGIN_CONTINUE
    
new nbut pev(idpev_button)
    new 
obut pev(idpev_oldbuttons)
    new 
flags pev(idpev_flags)
    if((
nbut IN_JUMP) && !(flags FL_ONGROUND) && !(obut IN_JUMP))
    {
        if(
jumpnum[id] < get_cvar_num("amx_maxjumps"))
        {
            
dojump[id] = true
            jumpnum
[id]++
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nbut IN_JUMP) && (flags FL_ONGROUND))
    {
        
jumpnum[id] = 0
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}

public 
client_PostThink(id)
{
    if(!
is_user_alive(id)) 
        return 
PLUGIN_CONTINUE
        
    
if(dojump[id] == true)
    {
        new 
Float:velocity[3]
        
pev(idpev_velocity)
        
velocity[2] = random_float(265.0,285.0)
        
set_pev(idpev_velocityvelocity)
        
dojump[id] = false
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE

__________________
_lol_ 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 01:29.


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