Raised This Month: $ Target: $400
 0% 

Problem with Ham_Item_Deploy and _cl_autowepswitch 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 11-06-2014 , 11:17   Re: Problem with Ham_Item_Deploy and _cl_autowepswitch 1
Reply With Quote #1

PHP Code:
//At the start of plugin
const m_pPlayer 41
const XO_WEAPON 4

...
// Unless you need to modify the output of Ham_Item_Deploy_hook aka returning a different value or blocking it's call (HAM_SUPERCEDE) you should use post
RegisterHam(Ham_Item_DeployszWeaponName"Ham_Item_Deploy_hook"1)
...

public 
Ham_Item_Deploy_hook(ent)
{
    new 
userid get_pdata_cbase(entm_pPlayerXO_WEAPON)

    
//...


Last edited by Fr33m@n; 11-06-2014 at 11:29.
Fr33m@n is offline
Aydeev
Junior Member
Join Date: Oct 2014
Old 11-06-2014 , 12:16   Re: Problem with Ham_Item_Deploy and _cl_autowepswitch 1
Reply With Quote #2

I don't understand what's going on there but it works. Thank you
Aydeev 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 17:44.


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