diff --git a/plugins/funcommands/beacon.sp b/plugins/funcommands/beacon.sp index 49d19eb5..d7762834 100644 --- a/plugins/funcommands/beacon.sp +++ b/plugins/funcommands/beacon.sp @@ -44,18 +44,16 @@ void CreateBeacon(int client) void KillBeacon(int client) { g_BeaconSerial[client] = 0; - - if (IsClientInGame(client)) - { - SetEntityRenderColor(client, 255, 255, 255, 255); - } } void KillAllBeacons() { for (int i = 1; i <= MaxClients; i++) { - KillBeacon(i); + if (g_BeaconSerial[i] != 0) + { + KillBeacon(i); + } } } diff --git a/plugins/funcommands/fire.sp b/plugins/funcommands/fire.sp index 0d9da55e..62f834a9 100644 --- a/plugins/funcommands/fire.sp +++ b/plugins/funcommands/fire.sp @@ -48,6 +48,11 @@ void CreateFireBomb(int client) void KillFireBomb(int client) { + if (g_FireBombSerial[client] == 0) + { + return; + } + g_FireBombSerial[client] = 0; if (IsClientInGame(client)) @@ -72,7 +77,7 @@ void PerformBurn(int client, int target, float seconds) void PerformFireBomb(int client, int target) { - if (g_FireBombSerial[client] == 0) + if (g_FireBombSerial[target] == 0) { CreateFireBomb(target); LogAction(client, target, "\"%L\" set a FireBomb on \"%L\"", client, target); @@ -80,7 +85,6 @@ void PerformFireBomb(int client, int target) else { KillFireBomb(target); - SetEntityRenderColor(client, 255, 255, 255, 255); LogAction(client, target, "\"%L\" removed a FireBomb on \"%L\"", client, target); } } @@ -173,7 +177,6 @@ public Action Timer_FireBomb(Handle timer, any value) IgniteEntity(client, g_Cvar_BurnDuration.FloatValue); KillFireBomb(client); - SetEntityRenderColor(client, 255, 255, 255, 255); if (g_Cvar_FireBombMode.IntValue > 0) { diff --git a/plugins/funcommands/timebomb.sp b/plugins/funcommands/timebomb.sp index 36e5bccb..50c4abd4 100644 --- a/plugins/funcommands/timebomb.sp +++ b/plugins/funcommands/timebomb.sp @@ -47,6 +47,11 @@ void CreateTimeBomb(int client) void KillTimeBomb(int client) { + if (g_TimeBombSerial[client] == 0) + { + return; + } + g_TimeBombSerial[client] = 0; if (IsClientInGame(client)) @@ -73,7 +78,6 @@ void PerformTimeBomb(int client, int target) else { KillTimeBomb(target); - SetEntityRenderColor(client, 255, 255, 255, 255); LogAction(client, target, "\"%L\" removed a TimeBomb on \"%L\"", client, target); } } @@ -149,7 +153,6 @@ public Action Timer_TimeBomb(Handle timer, any value) ForcePlayerSuicide(client); KillTimeBomb(client); - SetEntityRenderColor(client, 255, 255, 255, 255); if (g_Cvar_TimeBombMode.IntValue > 0) {