Raised This Month: $51 Target: $400
 12% 

Do "Shield" include in "WepPick", "CurWeapon"? (event)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
johnny40409
Senior Member
Join Date: Mar 2009
Old 05-18-2009 , 07:52   Do "Shield" include in "WepPick", "CurWeapon"? (event)
Reply With Quote #1

I am writing a plugin ,
I'm using event WepPick and CurWep.
but I have a question.

Do "Shield" include in Weapon Pick? , cause I've tested , doesn't work.
If no , how can I do to fix the problem?

And CurWep , There isn't a id for shield , all I know is "weapon_shield" ,
There isn't "CSW_SHIELD" ...

Is there any way to fix , like read_data?..

Just few question's , thanks!

Last edited by johnny40409; 05-18-2009 at 08:11.
johnny40409 is offline
johnny40409
Senior Member
Join Date: Mar 2009
Old 05-18-2009 , 18:19   Re: Do "Shield" include in "WepPick", "CurWeapon"? (event)
Reply With Quote #2

Hello , somebody help me?
I've already post 3 topics.

No one reply me...
johnny40409 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-18-2009 , 18:25   Re: Do "Shield" include in "WepPick", "CurWeapon"? (event)
Reply With Quote #3

for the CurWeapon event it displays the secondary weapon ID... it wouldn't make sense to display the shield's id because you wouldn't know what weapon you have with the shield...

all you can do is use a variable when you pickup the shield and use it on curweapon...

or you could use cs_get_user_shield... but I recommend using a variable because it's more efficient
__________________
Hunter-Digital is offline
johnny40409
Senior Member
Join Date: Mar 2009
Old 05-20-2009 , 10:23   Re: Do "Shield" include in "WepPick", "CurWeapon"? (event)
Reply With Quote #4

Ok~But my problem is,
When finish giving player a shield,
If player throw the shield out ,
and pick it up by (knife , HE,FB,SE) ,

It will be like this








It looks like I'm just taking a knife,
but truely , I'm taking a shield ..
But can't see it..you know my problem is?

So I need a PickUp event to set users shield model..
johnny40409 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 13:07.


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