diff --git a/scripting/include/smlib/clients.inc b/scripting/include/smlib/clients.inc index 8e6bb6e..6070970 100644 --- a/scripting/include/smlib/clients.inc +++ b/scripting/include/smlib/clients.inc @@ -777,6 +777,29 @@ stock Client_SetArmor(client, value) SetEntProp(client, Prop_Data, "m_ArmorValue", value); } +/** + * Returns the client's Helmet + * + * @param client Client's index. + * @return Helmet value + */ +stock Client_GetHelmet(int client) +{ + return GetEntProp(client, Prop_Send, "m_bHasHelmet"); +} + +/** + * Sets the client's Helmet. + * + * @param client Client's index. + * @param value Helmet value + * @noreturn + */ +stock Client_SetHelmet(int client, int value) +{ + SetEntProp(client, Prop_Send, "m_bHasHelmet", value); +} + /** * Returns the client's Suitpower *