Raised This Month: $ Target: $400
 0% 

[SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 03-28-2007 , 10:45   Re: Help with Knife invisibility coding
Reply With Quote #21

really there is no need to use the cstrike module for this:

Code:
#include <amxmodx> #include <fun> #define PLUGIN "Knife Glow" #define VERSION "1.0" #define AUTHOR  "" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);         register_event("CurWeapon", "event_curweapon", "be", "1=1") } public event_curweapon(id) {     switch(read_data(2)) {         case CSW_KNIFE: {             set_hudmessage(200, 100, 0, -2.0, 0.20, 0, 6.0, 6.0, 0.5, 0.15, 4)             show_hudmessage(id,"       Visibility 22%")             set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,55)         }                 default: {             set_hudmessage(200, 100, 0, -2.0, 0.20, 0, 6.0, 99999.0, 0.5, 0.15, 4)             show_hudmessage(id,"       Visibility 100%");             set_user_rendering(id);         }     }     return PLUGIN_HANDLED }
__________________
All you need to change the world is one good lie and a river of blood

Last edited by P34nut; 03-28-2007 at 10:48.
P34nut is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-28-2007 , 12:45   Re: Help with Knife invisibility coding
Reply With Quote #22

so which one should i use? lol
im lost now

Just to clear things up...
Basically when knife is out i want invisibilty.
when knife is not out I want it to be normal.
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!

Last edited by BioI-Iazard; 03-28-2007 at 12:52.
BioI-Iazard is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 03-28-2007 , 15:19   Re: Help with Knife invisibility coding
Reply With Quote #23

Use P34nut's, just using a switch case is better then "if - else"
Drak is offline
Send a message via MSN to Drak
Reply



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 21:37.


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