AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Do "Shield" include in "WepPick", "CurWeapon"? (event) (https://forums.alliedmods.net/showthread.php?t=92686)

johnny40409 05-18-2009 07:52

Do "Shield" include in "WepPick", "CurWeapon"? (event)
 
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!

johnny40409 05-18-2009 18:19

Re: Do "Shield" include in "WepPick", "CurWeapon"? (event)
 
Hello , somebody help me?
I've already post 3 topics.

No one reply me...

Hunter-Digital 05-18-2009 18:25

Re: Do "Shield" include in "WepPick", "CurWeapon"? (event)
 
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

johnny40409 05-20-2009 10:23

Re: Do "Shield" include in "WepPick", "CurWeapon"? (event)
 
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




http://imgs.f-heaven.org/uimg/1242829331.jpg



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..


All times are GMT -4. The time now is 01:25.

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