Update FixPlayerEquip

This commit is contained in:
BotoX 2017-08-02 20:41:19 +02:00
parent 06c9147195
commit c93346d566

View File

@ -4,7 +4,6 @@
#include <sourcemod> #include <sourcemod>
#include <sdktools> #include <sdktools>
#include <sdkhooks> #include <sdkhooks>
#include <dhooks>
#include <cstrike> #include <cstrike>
// void CCSPlayer::StockPlayerAmmo( CBaseCombatWeapon *pNewWeapon ) // void CCSPlayer::StockPlayerAmmo( CBaseCombatWeapon *pNewWeapon )
@ -94,6 +93,11 @@ public Action OnUse(int entity, int client)
{ {
SetEntProp(client, Prop_Send, "m_ArmorValue", 100, 1); SetEntProp(client, Prop_Send, "m_ArmorValue", 100, 1);
} }
else if(StrEqual(sWeapon, "item_assaultsuit", false))
{
SetEntProp(client, Prop_Send, "m_ArmorValue", 100, 1);
SetEntProp(client, Prop_Send, "m_bHasHelmet", 1, 1);
}
else else
{ {
GivePlayerItem(client, sWeapon); GivePlayerItem(client, sWeapon);