Raised This Month: $ Target: $400
 0% 

get_user_buttom


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
2reason2kill
Senior Member
Join Date: Feb 2011
Old 07-24-2011 , 14:04   get_user_buttom
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
test(id)
{
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T))
    {
        if(
get_user_button(id) & IN_ATTACK)
        {
            
make_visble(id)
        }
        else
        {
            
make_invisble(id)
        }
    }
}
public 
make_invisble(id)
{
    
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha0)
}
public 
make_visble(id)
{
    
set_user_rendering(idkRenderFxNone0,0,0kRenderNormal255)

Should I define It?

Im trying To do if a user isnt Movieng The Make Him Invisble But If a User Moves make him Visble.
2reason2kill 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 01:08.


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