AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Shield const [Solved!] (https://forums.alliedmods.net/showthread.php?t=74328)

anakin_cstrike 07-16-2008 13:18

Shield const [Solved!]
 
Whats the shield's id in cs ? like CSW_aweapon... ? i want to check if is not, like this :
PHP Code:

if(wID != CSW_DEAGLE


JFeldon 07-16-2008 14:09

Re: Shield const
 
This was in cstrike.inc, you could use that.
PHP Code:

/* Returns 1 if user has a shield, else 0.
 */
native cs_get_user_shield(index); 


anakin_cstrike 07-16-2008 14:28

Re: Shield const
 
Quote:

Originally Posted by JFeldon (Post 653688)
This was in cstrike.inc, you could use that.
PHP Code:

/* Returns 1 if user has a shield, else 0.
 */
native cs_get_user_shield(index); 


LOL..i forgot about cstrike functions....thanks.


All times are GMT -4. The time now is 05:37.

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