Raised This Month: $ Target: $400
 0% 

engclient_cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 12-30-2009 , 06:22   engclient_cmd
Reply With Quote #1

PHP Code:
public plugin_init( )
{
    
register_event("CurWeapon""check_knife""be""1=1");
}

public 
check_knifeid )
{
    if ( 
is_user_aliveid ) )
    {
        if ( 
get_user_weaponid ) != CSW_KNIFE && get_user_weaponid ) != CSW_C4 )
        {
            
engclient_cmd(id"weapon_knife");
        }
        else if ( 
get_user_weaponid ) != CSW_KNIFE && get_user_weaponid ) == CSW_C4 )
        {
        }
    }

Can anybody give more effective code?
Debesėlis 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 04:15.


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