Raised This Month: $ Target: $400
 0% 

[SOLVED] Drop primary | secondary


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 05-06-2010 , 10:48   [SOLVED] Drop primary | secondary
Reply With Quote #1

I need 2 stocks...
1) primary
2) secondary...
thanks in advance...
__________________

Last edited by 5c0r-|3i0; 05-06-2010 at 20:12. Reason: SOLVED
5c0r-|3i0 is offline
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
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 05-06-2010 , 19:57   Re: [Stock] Drop primary | secondary
Reply With Quote #3

Thanks....Solved
__________________
5c0r-|3i0 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 03:45.


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