Raised This Month: $ Target: $400
 0% 

Set Rendering on Dropped Weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-13-2010 , 08:55   Set Rendering on Dropped Weapons
Reply With Quote #1

Alright, so I hooked the drop command, and this is what I came up with:

PHP Code:
public cmdDrop(id)
{
    if( !
is_user_alive(id) )
    {
        return 
PLUGIN_CONTINUE;
    }
    
    new 
iDropped get_user_weapon(id)
    
    if( 
iDropped == CSW_DEAGLE && gInLR[id] == true && gToss == true )
    {
        if( 
cs_get_user_team(id) == CS_TEAM_T )
        {
            
set_renderingiDroppedkRenderFxGlowShell25500kRenderNormal255 )
        }
        
        if( 
cs_get_user_team(id) == CS_TEAM_CT )
        {
            
set_renderingiDroppedkRenderFxGlowShell00255kRenderNormal255 )
        }
    }
    
    return 
PLUGIN_CONTINUE;

Doesn't seem to glow anything.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 21:50.


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