Update FixPlayerEquip
This commit is contained in:
parent
06c9147195
commit
c93346d566
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user