Raised This Month: $ Target: $400
 0% 

Help with invisiblility...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fred Dawes
Junior Member
Join Date: May 2006
Old 05-19-2006 , 22:20   Help with invisiblility...
Reply With Quote #1

I am not a total noob at coding. I just can't figure out how my attempts at invisibility are failing.

I looked through the forums, and I basically figured out this...

1) set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha,0) makes you invisible

2) set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha,255) makes you visible.

This is my code...

Code:
public invison(id) #include <amxmodx> #include <amxmisc> #include <dbi> #include <tsx> #include <tsxaddon> #include <engine> #include <fun>
Code:
    register_concmd("invisibility","invison",ADMIN_IMMUNITY,"- Turns yourself invisible!!")
Code:
public invison(id){ {     if(cloaked[id] == 1){         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)         return PLUGIN_HANDLED     }else{         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,20)         return PLUGIN_HANDLED     } }

I type 'invisibility' in console, and nothing happens. I am running TS and AMXX 1.01. Any help, please?
__________________
SteamID STEAM_0:0458033
Fred Dawes 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:20.


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