Raised This Month: $ Target: $400
 0% 

Make player invisible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Igniuks
Member
Join Date: Mar 2007
Old 03-10-2010 , 16:33   Make player invisible
Reply With Quote #1

Is there a plugin to make a wanted player invisible? Something pretty simple like amx_blabla *name*, because everything I find is some sort of a mod that either makes whole team inivisble or every player on a server.
Igniuks is offline
lowled
Senior Member
Join Date: Sep 2007
Old 03-10-2010 , 16:59   Re: Make player invisible
Reply With Quote #2

here .. maybe what you want

http://forums.alliedmods.net/showpos...97&postcount=1
__________________
lowled is offline
Igniuks
Member
Join Date: Mar 2007
Old 03-11-2010 , 06:18   Re: Make player invisible
Reply With Quote #3

Doesn't really work, it says the player is now invisible and everything, but you can still see him, it doesn't work.
Igniuks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-11-2010 , 06:35   Re: Make player invisible
Reply With Quote #4

Try this one, Not tested but should work
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init()
{
    
register_plugin("Invisible","1.0","Drekes")
    
register_concmd("amx_invis","cmdInvis",ADMIN_KICK,"amx_strip <player>")
}

public 
cmdInvis(id,level,cid
{
    if (!
cmd_access(id,level,cid,2)) return PLUGIN_HANDLED

    
new arg[32]
    
read_argv(1,arg,31)
    new 
player cmd_target(id,arg,1)
    if (!
player) return PLUGIN_HANDLED;

    new 
authid[35],authid2[35],name2[32],name[32]

    
get_user_authid(id,authid,34)
    
get_user_authid(player,authid2,34)
    
get_user_name(player,name2,31)
    
get_user_name(id,name,31)

    switch (
get_cvar_num("amx_show_activity")) 
    {
        case 
2client_print(0,print_chat,"[AMXX] %s made %s invisible!",name,name2)
        case 
1client_print(0,print_chat,"[AMXX] %s was made invisible!",name2)
    } 

    
set_user_rendering(player,kRenderFxNone00,0);
    
    
console_print(id,"[AMXX] Client ^"%s^" was made ivisible.",name2)
    return 
PLUGIN_HANDLED

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-11-2010 , 06:51   Re: Make player invisible
Reply With Quote #5

Your code is wrong, kRenderNone (0) won't make players invisible, you have to use kRenderTransalpha instead (6th parameter)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Igniuks
Member
Join Date: Mar 2007
Old 03-11-2010 , 07:09   Re: Make player invisible
Reply With Quote #6

Nevermind, used a glow command to make myself dissapear. Thanks for the help tho.
Igniuks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-11-2010 , 07:15   Re: Make player invisible
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Your code is wrong, kRenderNone (0) won't make players invisible, you have to use kRenderTransalpha instead (6th parameter)
oops, sorry
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 03:59.


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