View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-27-2014 , 08:15   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #86

BarTime could be called anytime by any plugins and holster just detects one of possible reasons of stopping.
A more reliable way is to not rely on BarTime: Hooking WeaponIdle of weapon_c4 and checking m_bStartedArming.

Code:
void CC4::WeaponIdle(void)
{
	if (m_bStartedArming)
	{
		// If you are here it means you stopped to plant.
	}
__________________
Arkshine is offline