Raised This Month: $ Target: $400
 0% 

Execute Ham_Item_Deploy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 02-02-2010 , 04:54   Execute Ham_Item_Deploy
Reply With Quote #1

Hi guys,

I have added two knives on my server and I would like to execute the deploy animation if a player changed from a knife to a knife.

I know that I must execute this feature with the function ExecuteHam(Ham_Item_Deploy, iEntity) from Hamsandwich but I didn't know how to get the number of the Entity. Is there an offset for get_pdata or get_cbase???

Many many thanks in advance.
Leon
Leon M. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2010 , 05:44   Re: Execute Ham_Item_Deploy
Reply With Quote #2

It's the weapon index. You can use the m_pActiveItem offset. (373)
__________________
Arkshine is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 02-02-2010 , 09:45   Re: Execute Ham_Item_Deploy
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
You can use the m_pActiveItem offset. (373)
OMG , I'm so stupid . I have used this offset some weeks ago.

Thx for open my eyes
Leon M. 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 07:18.


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