Raised This Month: $ Target: $400
 0% 

[ZP] Zombie Class : Invisible Cat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-14-2009 , 05:59   Re: [ZP] Zombie Class : Invisible Cat
Reply With Quote #8

- You should use set_user_rendering() from fun instead of fakemeta, it will be more efficient.
- You should use FM_CmdStart instead of PlayerPreThink, but is really need just to glow ?
- Like said Nextra, you should move pev_button, but I would reorganize like this to avoid returs :

Code:
const MOVE_BUTTONS = ( IN_ATTACK | IN_ATTACK2 | IN_BACK | IN_FORWARD | IN_RUN | IN_JUMP | IN_MOVELEFT | IN_MOVERIGHT | IN_LEFT | IN_RIGHT );

Code:
    if ( is_user_alive( id ) && zp_get_user_zombie( id ) && zp_get_user_zombie_class(id) == g_cat_class )     {         pev( id, pev_button ) & MOVE_BUTTONS ?                     set_user_rendering(id, kRenderFxNone, 0,0,0,kRenderNormal, 255) :             set_user_rendering(id, kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 45);     }

Last edited by Arkshine; 04-14-2009 at 13:50.
Arkshine 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 16:24.


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