Raised This Month: $ Target: $400
 0% 

Forcing a zombie to duck and may not jump


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 06-09-2009 , 11:01   Re: Forcing a zombie to duck and may not jump
Reply With Quote #2

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <zombieplague>

#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

/*new g_zclass_hczombie = 0;*/

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_CmdStart"FwdCmdStart")
    
register_forward(FM_PlayerPreThink"FwdClientPreThink")
    
}

public 
FwdClientPreThink(id)
{
    if(!
zp_get_user_zombie(id) || zp_get_user_nemesis(id) || !is_user_alive(id) || zp_get_user_zombie_class(id) != g_zclass_hczombie
        return 
FMRES_IGNORED
    
    set_pev
(idpev_buttonpev(idpev_button) & IN_DUCK)    
    
    return 
FMRES_IGNORED
}


public 
FwdCmdStart(iduc_handleseed)
{
    if(!
is_user_alive(id) || !zp_get_user_zombie(id))
        return 
FMRES_IGNORED
    
    
new button get_uc(uc_handleUC_Buttons)
    if(
button IN_JUMP)
    {
        
set_uc(uc_handleUC_Buttons, (button & ~IN_JUMP))
        
        return 
FMRES_SUPERCEDE
    
}    
    return 
FMRES_IGNORED

try this.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
 



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 13:51.


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