forked from UNLOZE/sm-plugins
Update FixPlayerEquip
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user