diff --git a/plugins/L4D2Tools.smx b/plugins/L4D2Tools.smx index e5bea6d..dea4216 100644 Binary files a/plugins/L4D2Tools.smx and b/plugins/L4D2Tools.smx differ diff --git a/scripting/L4D2Tools.sp b/scripting/L4D2Tools.sp index 7cc6599..0a79d9c 100644 --- a/scripting/L4D2Tools.sp +++ b/scripting/L4D2Tools.sp @@ -86,15 +86,20 @@ public void Event_FinaleStart(Event event, const char[] name, bool dontBroadcast } public void Event_FinaleEnd(Event event, const char[] name, bool dontBroadcast) { if(hFinaleTimer.IntValue != 0) { - int difference = GetTime() - iFinaleStartTime; - - char time[32]; - FormatSeconds(difference, time, sizeof(time)); - PrintToChatAll("Finale took %s to complete", time); - iFinaleStartTime = 0; - + if(iFinaleStartTime != 0) { + int difference = GetTime() - iFinaleStartTime; + + char time[32]; + FormatSeconds(difference, time, sizeof(time)); + PrintToChatAll("Finale took %s to complete", time); + iFinaleStartTime = 0; + } } } +public void Event_CarAlarmTriggered(Event event, const char[] name, bool dontBroadcast) { + int userID = GetClientOfUserId(event.GetInt("userid")); + PrintToChatAll("%N activated a car alarm!", userID); +} /** * Prints human readable duration from milliseconds *