Raised This Month: $51 Target: $400
 12% 

invisibility


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 12-01-2006 , 14:02   invisibility
Reply With Quote #1

PHP Code:
{
register_plugin("Admin Invisibility","1.0","nordy")
register_concmd("amx_invis","Admin_invis"ADMIN_LEVEL_A,"Sets a person invisible (name)")
register_concmd("amx_uninvis","Admin_uninvis"ADMIN_LEVEL_A,"Sets a person visible again (name)")
}

public 
client_connect(id)
{
    
feet[id] = false
}

public 
client_disconnect(id)
{
    
feet[id] = false
}

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

new arg[32], name2[32
get_user_name(id,name2,31
read_argv(1,arg,31
if (
arg[0]=='@')

new 
players[32], inum 
get_players
(players,inum,"ae",arg[1]) 
if (
inum==0)

    
console_print(id,"No clients in such team"
    return 
PLUGIN_HANDLED 

for(new 
a=0;a<inum;++a
{
    
set_user_rendering(players[a],kRenderFxGlowShell,0,0,0,kRenderTransAlpha,0
    
feet[players[a]]=true
}
switch(
get_cvar_num("amx_show_activity")) 
{
    case 
2client_print(0,print_chat,"ADMIN %s: set invisibility on all %s",name2,arg[1])
    case 
1client_print(0,print_chat,"ADMIN: set invisibility on all %s",arg[1])
    
return 
PLUGIN_HANDLED
}
server_cmd("sv_maxspeed 99999999")
new 
i
new arg[32]
read_argv(1arg31)
if(
arg[0] == '@'
}
console_print(id,"All clients have set invisibility"

else 

new 
player cmd_target(id,arg,2
if (!
player) return PLUGIN_HANDLED 
set_user_rendering
(player,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,0)
feet[player]=true
new name[32
get_user_name(player,name,31
switch(
get_cvar_num("amx_show_activity"))
{
    case 
2client_print(0,print_chat,"ADMIN %s: set invisibility on %s",name2,name)
    case 
1client_print(0,print_chat,"ADMIN: set invisibility on %s",name)
}
console_print(id,"Client ^"%s^" has set invisibility",name

return 
PLUGIN_HANDLED 


public 
Admin_uninvis(id,level,cid)
{
if (!
cmd_access(id,level,cid,2)) 
    return 
PLUGIN_HANDLED 
new arg[32], name2[32
get_user_name(id,name2,31
read_argv(1,arg,31
if (
arg[0]=='@')

new 
players[32], inum 
get_players
(players,inum,"ae",arg[1]) 
if (
inum==0)

    
console_print(id,"No clients in such team"
    return 
PLUGIN_HANDLED 

for(new 
a=0;a<inum;++a)

    
set_user_rendering(players[a],kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)
    
feet[players[a]]=false
}
switch(
get_cvar_num("amx_show_activity")) 
{
    case 
2client_print(0,print_chat,"ADMIN %s: no invisibility on all %s",name2,arg[1])
    case 
1client_print(0,print_chat,"ADMIN: no invisibility on all %s",arg[1])
}
console_print(id,"All clients have no invisibility"

else 

new 
player cmd_target(id,arg,2
if (!
player) return PLUGIN_HANDLED 
set_user_rendering
(player,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)
feet[player]=false
new name[32
get_user_name(player,name,31
switch(
get_cvar_num("amx_show_activity")) 
{
    case 
2client_print(0,print_chat,"ADMIN %s: set invisibility on %s",name2,name)
    case 
1client_print(0,print_chat,"ADMIN: set invisibility on %s",name)
}
console_print(id,"Client ^"%s^" has no invisibility",name

return 
PLUGIN_HANDLED 
}

public 
client_prethink(id)
{
    if(
feet[id])
    {
        
entity_set_int(idEV_INT_flTimeStepSound999)
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1062\\ f0\\ fs16 \n\\ par }
*/ 

can some1 help me to to this full invisibility when i tried it every1 saw my shadow but i know there's invis plugins with ful invis but with no maxpseed and with footsteps i can get it working and no footsteps i dont know how to do that =[

Last edited by nordy; 12-01-2006 at 14:08.
nordy is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-01-2006 , 14:05   Re: invisibility
Reply With Quote #2

why are you using a server command to set maxpeed?
Code:
cs_set_user_maxspeed(id,900.0)
The Specialist is offline
Send a message via AIM to The Specialist
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 19:46.


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