Raised This Month: $ Target: $400
 0% 

1 Warning


Post New Thread Reply   
 
Thread Tools Display Modes
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-06-2011 , 18:13   Re: 1 Warning
Reply With Quote #11

szPlayerName

?
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 10-07-2011 , 02:59   Re: 1 Warning
Reply With Quote #12

PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < colorchat >

public plugin_init( )
{
    
register_clcmd"+adminslay""slay_by_aim"ADMIN_BAN );
}

public 
slay_by_aimid )
{
    new 
playerbody;
    new 
admin_name32 ], user_name32 ];
    if( 
get_user_flagsid ) & ADMIN_BAN )
    {
        
get_user_aimingidplayerbody );
        if( 
get_user_flagsplayer ) & ADMIN_IMMUNITY )
        {
            
ColorChatidGREEN"You can slay a player with Immunity!" );
            return 
PLUGIN_HANDLED;
        }
        else
        {
            if( 
is_user_aliveplayer ) )
            {
                
get_user_nameidadmin_name31 ), get_user_nameplayeruser_name31 );
                
user_killplayer );
                
ColorChatplayerGREY"You have been slayed by %s"admin_name );
                
ColorChatidTEAM_COLOR"You just slayed %s"user_name );
            }
        }
    }
    return 
PLUGIN_HANDLED;

By the way in your code you forgot "#include < colorchat >" ..
MyPc 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 02:20.


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