Raised This Month: $ Target: $400
 0% 

Help with invisiblility...


Post New Thread Reply   
 
Thread Tools Display Modes
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
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-19-2006 , 22:42  
Reply With Quote #2

If you are going to use engine might as well:

Code:
/* If visible = 1, entity will be set to be visible, else invisible. */ set_entity_visibility(entity, visible = 1)
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
noob cannon lol
SourceMod Donor
Join Date: Sep 2005
Old 05-19-2006 , 23:24  
Reply With Quote #3

try kRenderFxNone instead of glowshell
noob cannon lol is offline
Send a message via AIM to noob cannon lol Send a message via MSN to noob cannon lol
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 05-20-2006 , 01:05  
Reply With Quote #4

why do you have so many includes?
why do you have public invision(id) on top of your includes?
Freecode is offline
Feren6
Junior Member
Join Date: May 2006
Old 05-20-2006 , 08:20  
Reply With Quote #5

Do not use the set_entity_visibility if you still wish to spectate that person. If they are "invisible" using that function, you will not be able to. Best off using the kRenderFxGlowShell and set it to 0
Feren6 is offline
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 16:20.


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