Raised This Month: $ Target: $400
 0% 

How to block animation?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-13-2011 , 10:43   How to block animation?
Reply With Quote #1

How to block animation for a knife?


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

public plugin_init ( )
    
register_forward(FM_UpdateClientData"UpdateClientData_Post"1)

public 
UpdateClientData_Post PlayerSendWeaponsCD_Handle )
{
    if (!
is_user_alive(Player)) return FMRES_IGNORED

    
if( get_user_weaponPlayer ) != CSW_KNIFE ) return FMRES_IGNORED

    set_cd
(CD_HandleCD_ID0);

    return 
FMRES_HANDLED

So animation is blocked on all weapons
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-13-2011 , 10:46   Re: How to block animation?
Reply With Quote #2

Not sure if works:
PHP Code:
public UpdateClientData_Post PlayerSendWeaponsCD_Handle 

    if (!
is_user_alive(Player)) return FMRES_IGNORED 

    
if( get_user_weaponPlayer ) != CSW_KNIFE ) return FMRES_IGNORED 

    set_cd
(CD_HandleCD_ID0); 

    return 
FMRES_IGNORED;

__________________
Snaker beatter is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-13-2011 , 13:06   Re: How to block animation?
Reply With Quote #3

you changed nothing?
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-13-2011 , 13:18   Re: How to block animation?
Reply With Quote #4

Quote:
Originally Posted by JoKeR LauGh View Post
you changed nothing?
he changed:

PHP Code:
return FMRES_HANDLED 


PHP Code:
return FMRES_IGNORED
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Old 12-13-2011, 13:17
Bos93
This message has been deleted by Bos93.
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-13-2011 , 13:29   Re: How to block animation?
Reply With Quote #6

Nothing has changed
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-18-2011 , 03:42   Re: How to block animation?
Reply With Quote #7

If i revived sorry

Code:
public UpdateClientData_Post ( Player, SendWeapons, CD_Handle ) 
{ 
    if (!is_user_alive(Player)) return FMRES_IGNORED 

    if( get_user_weapon( Player ) == CSW_KNIFE ) return FMRES_IGNORED 

    set_cd(CD_Handle, CD_ID, 0); 

    return FMRES_IGNORED;
}
__________________

Last edited by Snaker beatter; 12-18-2011 at 03:43.
Snaker beatter 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 11:52.


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