Raised This Month: $ Target: $400
 0% 

Solved It's good code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Diversity
AlliedModders Donor
Join Date: Jan 2018
Location: Constanta, Romania
Old 01-06-2018 , 00:40   Re: It's good code?
Reply With Quote #5

Is good now?
Code:
public _MakeInvis( id )
{
    new players[32], asd
    get_players( players, asd, "ae", "TERRORIST" )

    if( asd == 1 )
        if( NoKnife[ players[ 0 ] ] && is_user_alive( players[ 0 ] ) )
            return set_user_rendering( players[ 0 ], kRenderFxNone, 0, 0, 0, kRenderTransAlpha , 0 )

    return PLUGIN_HANDLED
}

public _CurWeapon( id )
{
    if( is_user_alive( id ) && get_user_weapon( id ) == CSW_KNIFE )
        return NoKnife[ id ] = 0
    else
        return NoKnife[ id ] = 1

    return PLUGIN_HANDLED
}
Diversity 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 00:34.


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