Raised This Month: $ Target: $400
 0% 

give_item question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xxxnenadxxx
Junior Member
Join Date: Oct 2010
Location: Brod
Old 10-29-2013 , 14:17   give_item question
Reply With Quote #1

Hey guys, I created plugin that gives players specific item/weapon on round start.
Now the problem is that I can't give them shield (tactical shield for CT), with give_item(id, "weapon_shield") function. At round start it strips their weapons so I thought it was because of that, I used this fix:
PHP Code:
StripWeapons(id)
{
    const 
m_fHasPrimary 116
    strip_user_weapons
(id)
    
set_pdata_int(idm_fHasPrimary0)

that I found on forum posted by Connor (I think) but it still doesn't work. What could block shield? And does shield model need to be precached first?
xxxnenadxxx 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 23:18.


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