Raised This Month: $ Target: $400
 0% 

Invisible Player


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Kristaps08
Junior Member
Join Date: Jun 2010
Old 07-30-2012 , 10:44   Invisible Player
Reply With Quote #1

Invisible Player


Description:

With this plugin you can make players invisible.


Cvars:

amx_invisible_amount - Sets the amount of invisibility that player will have. (default 20)


Admin Commands:

amx_invisible <target> [0|1] - 0=OFF 1=ON


Planning to add:

Nothing yet.


Known Bugs:

None yet.


Required Modules:

fakemeta


Credits:

Translations: [hu] = kiki33hun


Changelog:

Code:
- v1.0
* First release.

- v1.1
* First public release.
* Code cleanup.
* Command amx_invisible is changed to command amx_give_invisibility and command amx_remove_invisibility.
* Added hamsandwich module.
* Command amx_invisible is working again.

- v1.2
* Changed from (g_is_invisible[player]==false) to (!g_is_invisible[player])

- v1.3
* Changed engine module to fun module.
* Added command amx_check_invisibility to check if the player is invisible.
* Added cvar to control how much will be invisible.
* Changed from set_entity_visibility to set_user_rendering.
* Commands amx_give_invisibility and command amx_remove_invisibility is changed to command amx_invisible.
* Cleaned up some code.

- v1.4
* Code changes and cleanup.
* Added support for amx_show_activity.
* Changed from hamsandwich to fakemeta.

- v1.5
* Optimized code.

- v1.6
* Removed fun module.
* Optimized a little bit the code.
* Added description.

- v1.7
* Optimized code a tiny little bit.

- v1.8
* Addded a new translation.
* Changed a tiny little bit of code.
Attached Files
File Type: sma Get Plugin or Get Source (invisible_player.sma - 1800 views - 2.6 KB)
File Type: txt invisible_player.txt (854 Bytes, 617 views)

Last edited by Kristaps08; 09-26-2012 at 11:53. Reason: Updates
Kristaps08 is offline
speed_script
Junior Member
Join Date: Jul 2012
Old 07-30-2012 , 11:01   Re: Invisible Player
Reply With Quote #2

Good Job For a new member!
speed_script is offline
Send a message via Skype™ to speed_script
isotonic
Senior Member
Join Date: Jun 2011
Location: Moscow, Russia
Old 07-30-2012 , 20:52   Re: Invisible Player
Reply With Quote #3

Instead of using
PHP Code:
if (g_is_invisible[player]==false) {
    
// <>
}
else if (
g_is_invisible[player]) {
    
// <>

you could just use
PHP Code:
if ( !g_is_invisible[player] ) {
    
// <>
}
else {
    
// <>

__________________

Last edited by isotonic; 07-30-2012 at 20:52.
isotonic is offline
Kristaps08
Junior Member
Join Date: Jun 2010
Old 07-31-2012 , 06:55   Re: Invisible Player
Reply With Quote #4

Thx, isotonic.
Kristaps08 is offline
SPT1
Senior Member
Join Date: Aug 2012
Old 08-04-2012 , 13:42   Re: Invisible Player
Reply With Quote #5

its a small plugin to be approved. add some more things
SPT1 is offline
[email protected]
Member
Join Date: May 2010
Location: Serbia
Old 08-04-2012 , 17:39   Re: Invisible Player
Reply With Quote #6

why not making only 1 command like amx_invisibility <target>
Sp@jk is offline
isotonic
Senior Member
Join Date: Jun 2011
Location: Moscow, Russia
Old 08-04-2012 , 20:52   Re: Invisible Player
Reply With Quote #7

I think it is too dramatic plugin. Noone will play with completely invisible player.
Add him at least some visibility like
PHP Code:
set_user_renderingidkRenderFxGlowShell000kRenderTransAlpha20 
__________________

Last edited by isotonic; 08-04-2012 at 20:52.
isotonic is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 08-04-2012 , 23:47   Re: Invisible Player
Reply With Quote #8

Add a cvar for control the amount of invisibility, it's more easy and useful xD
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!

Last edited by quilhos; 08-04-2012 at 23:48.
quilhos is offline
SPT1
Senior Member
Join Date: Aug 2012
Old 08-20-2012 , 09:50   Re: Invisible Player
Reply With Quote #9

how to invisible someone full?
__________________
AMXMODX
SPT1 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-21-2012 , 09:56   Re: Invisible Player
Reply With Quote #10

set the last parameter of set_user_rendering to 0 for total invisibility
__________________
Napoleon_be is online now
Send a message via Skype™ to Napoleon_be
Reply


Thread Tools
Display Modes

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:11.


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