PHP Code:
m_iHealth = FindSendPropOffs("CCSPlayer", "m_iHealth");
m_ArmorValue = FindSendPropOffs("CCSPlayer", "m_ArmorValue");
m_bHasHelmet = FindSendPropOffs("CCSPlayer", "m_bHasHelmet");
m_bHasDefuser = FindSendPropOffs("CCSPlayer", "m_bHasDefuser");
m_bHasNightVision = FindSendPropOffs("CCSPlayer", "m_bHasNightVision");
You're bypassing SourceMod's safety checking an caching by doing this, just use GetEntProp.
You don't need to close handles in OnPluginEnd, SourceMod will do the cleanup.
PHP Code:
// Work around A2S_RULES bug in linux orange box
SetConVarString(g_ConVar_Version, PLUGIN_VERSION);
This hasn't been needed in quite a while.
__________________