AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Armor (https://forums.alliedmods.net/showthread.php?t=131644)

Vechta 07-07-2010 08:33

Armor
 
how to detect if player has 200 armor?

If someone will say with pev armorvalue please give me then an
expample..

wrecked_ 07-07-2010 08:36

Re: Armor
 
Code:
new CsArmorType:ArmorType if( cs_get_user_armor( id, ArmorType ) == 200 )     // has 200 armor, ArmorType holds the armor type

Vechta 07-07-2010 08:49

Re: Armor
 
and

cs_set_user_armor(id, 0, ArmorType) -> Set armor to 0 ?

Brreaker 07-07-2010 12:39

Re: Armor
 
Funcwiki is your friend!


All times are GMT -4. The time now is 07:09.

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