Raised This Month: $ Target: $400
 0% 

Get the index of model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-08-2007 , 09:21   Re: Get the index of model
Reply With Quote #1

Code:
stock detect_weapon_id( id ) {     new m_iCurEnt = -1, m_iWpnEnt = 0, m_szWpn[32];         // Get User Weapon and WpnName     new clip, ammo, m_iWpn = get_user_weapon(id,clip,ammo);     get_weaponname( m_iWpn, m_szWpn, 31 );     // Get User Origin     new Float:m_flOrigin[3];     pev( id, pev_origin, m_flOrigin );         // Find Weapon     while( ( m_iCurEnt = engfunc( EngFunc_FindEntityInSphere, m_iCurEnt, m_flOrigin, Float:1.0 ) ) != 0 ) {         new m_szClassname[32];         pev( m_iCurEnt, pev_classname, m_szClassname, 31 );             if( equal( m_szClassname, m_szWpn ) )             m_iWpnEnt = m_iCurEnt;     }     return m_iWpnEnt; }
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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 01:24.


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