Update FixPlayerEquip
This commit is contained in:
parent
06c9147195
commit
c93346d566
@ -4,7 +4,6 @@
|
||||
#include <sourcemod>
|
||||
#include <sdktools>
|
||||
#include <sdkhooks>
|
||||
#include <dhooks>
|
||||
#include <cstrike>
|
||||
|
||||
// void CCSPlayer::StockPlayerAmmo( CBaseCombatWeapon *pNewWeapon )
|
||||
@ -94,6 +93,11 @@ public Action OnUse(int entity, int client)
|
||||
{
|
||||
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
|
||||
{
|
||||
GivePlayerItem(client, sWeapon);
|
||||
|
Loading…
Reference in New Issue
Block a user