Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Update to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
domikuss committed Oct 8, 2022
1 parent 20c5401 commit 83a3af5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Release Notes

## [1.0.1]

### Fixed
- **Invalid client index**

## [1.0.0]

### Added
Expand Down
6 changes: 5 additions & 1 deletion scripting/Kill-Screen.sp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Plugin myinfo =
name = "Kill Screen",
author = "Domikuss",
description = "Color screen when killing another player",
version = "1.0.0",
version = "1.0.1",
url = "https://github.com/domikuss/Kill-Screen"
};

Expand Down Expand Up @@ -175,6 +175,10 @@ Action OnPlayerDeath(Event hEvent, const char[] name, bool dont_broadcast)
{
bool bState;
int iAttacker = GetClientOfUserId(hEvent.GetInt("attacker"));
if(iAttacker <= 0 || IsFakeClient(iAttacker) || !IsPlayerAlive(iAttacker))
{
return Plugin_Continue;
}

if ((g_bActiveLib[LIB_VIP] && VIP_IsClientVIP(iAttacker) && VIP_IsClientFeatureUse(iAttacker, g_sFeature) ||
g_bActiveLib[LIB_SHOP] && Shop_IsClientHasItem(iAttacker, g_ItemId) && Shop_IsClientItemToggled(iAttacker, g_ItemId) && Shop_GetClientItemTimeleft(iAttacker, g_ItemId) >= 0))
Expand Down

0 comments on commit 83a3af5

Please sign in to comment.