Raised This Month: $ Target: $400
 0% 

[SOLVED] Drop primary | secondary


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-06-2010 , 19:25   Re: [Stock] Drop primary | secondary
Reply With Quote #2

Code:
#include < amxmodx > #include < fakemeta > #include < hamsandwich > DropWeaponSlot( iPlayer, iSlot ) {     static const m_rpgPlayerItems = 367; // player     static const m_pNext = 42; // weapon_*     static const m_iId = 43; // weapon_*         if( !( 1 <= iSlot <= 2 ) )     {         return 0;     }         new iCount;         new iEntity = get_pdata_cbase( iPlayer, ( m_rpgPlayerItems + iSlot ), 5 );     if( iEntity > 0 )     {         new iNext;         new szWeaponName[ 32 ];                 do         {             iNext = get_pdata_cbase( iEntity, m_pNext, 4 );                         if( get_weaponname( get_pdata_int( iEntity, m_iId, 4 ), szWeaponName, charsmax( szWeaponName ) ) )             {                 engclient_cmd( iPlayer, "drop", szWeaponName );                                 iCount++;             }         }         while( ( iEntity = iNext ) > 0 );     }         return iCount; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 03:45.


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