Skip to content

Commit

Permalink
Merge pull request #3 from Hedgefog/fix/client-disconnect
Browse files Browse the repository at this point in the history
add client validity check on disconnect
  • Loading branch information
Hedgefog authored May 20, 2022
2 parents caf1a98 + 86ab226 commit 8d48a4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### ❄ Snow Wars mod for Counter-Strike 1.6
__Version:__ 0.9.1 (Alpha)
__Version:__ 0.9.22 (Alpha)

### 📄 About

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snowwars",
"version": "0.9.1",
"version": "0.9.2",
"author": "Hedgehog Fog",
"description": "Snow Wars Mod",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/scripts/core/sw_gamemode.sma
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public plugin_init() {
}

public client_disconnected(pPlayer) {
if (!is_user_connected(pPlayer)) {
return;
}

@Player_DropItems(pPlayer);
@Player_DropArtifacts(pPlayer);
}
Expand Down

0 comments on commit 8d48a4f

Please sign in to comment.