AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Add feature to plugin and make code better if possible (https://forums.alliedmods.net/showthread.php?t=106203)

BioI-Iazard 10-12-2009 10:20

[HELP] Add feature to plugin and make code better if possible
 
I was wondering if if theres a way to make your own view look invisible. Meaning right now you dont see yourself as invisible when holding out your knife only others do. How can i make it so you see yourself invisible when holding knife out?
Here's what i have so far..
and if theres a more efficient way of writing this code pls help me out...
Code:
#include <amxmodx> #include <fun> #define PLUGIN "1K" #define VERSION "1.0" #define AUTHOR  "BioI-Iazard" 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.37, 0, 6.0, 6.0, 0.5, 0.15, 4)             show_hudmessage(id,"Visibility 22%")             set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,75)         }                 default: {             set_hudmessage(200, 100, 0, -2.0, 0.37, 0, 6.0, 99999.0, 0.5, 0.15, 4)             show_hudmessage(id,"Visibility 100%");             set_user_rendering(id);         }     }     return PLUGIN_HANDLED }

BioI-Iazard 10-13-2009 22:01

Re: [HELP] Add feature to plugin and make code better if possible
 
anybody? :(

Exolent[jNr] 10-13-2009 22:39

Re: [HELP] Add feature to plugin and make code better if possible
 
Do not bump until 2 weeks have passed since last post.
It is in the rules. How about you read them?
http://forums.alliedmods.net/showthread.php?t=100352

Locked due to excessive bumping.


All times are GMT -4. The time now is 22:40.

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