public OnPluginStart()
{
HookEvent("bomb_exploded", bomb_exploded);
HookEvent("bomb_beginplant", bomb_beginplant);
HookEvent("bomb_abortplant", bomb_abortplant);
}
public bomb_beginplant(Handle:event, const String:name[], bool:silent)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
SetEntPropFloat(client, Prop_Send, "m_flProgressBarStartTime", GetGameTime());
SetEntProp(client, Prop_Send, "m_iProgressBarDuration", 3.5);
}
public bomb_abortplant(Handle:event, const String:name[], bool:silent)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
SetEntPropFloat(client, Prop_Send, "m_flProgressBarStartTime", 0.0);
SetEntProp(client, Prop_Send, "m_iProgressBarDuration", 0);
}
public bomb_planted(Handle:event, const String:name[], bool:silent)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
SetEntPropFloat(client, Prop_Send, "m_flProgressBarStartTime", 0.0);
SetEntProp(client, Prop_Send, "m_iProgressBarDuration", 0);
}