Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
imi-tat0r committed Jun 30, 2024
0 parents commit 549c286
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 HvH.gg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
![Copyright ev0lve Digital](https://img.shields.io/badge/Copyright-ev0lve%20Digital-blue) ![GitHub License](https://img.shields.io/github/license/HvH-gg/CSGO-Item-CrashFix) ![Issues](https://img.shields.io/github/issues/HvH-gg/CSGO-Item-CrashFix) ![Downloads](https://img.shields.io/github/downloads/HvH-gg/CSGO-Item-CrashFix/total) ![Stars](https://img.shields.io/github/stars/HvH-gg/CSGO-Item-CrashFix)

# HvH.gg CS:GO Item CrashFix (1.0.0)

This plugin fixes an exploit where receiving CS2 Items will cause CS:GO clients to crash.

# Requirements
- [Metamod:Source](https://www.sourcemm.net/downloads.php/?branch=stable)
- [Sourcemod](https://www.sourcemod.net/downloads.php?branch=stable)

# Install
1. Download the latest release from the [releases](https://github.com/HvH-gg/CSGO-Item-CrashFix/releases) page
2. Extract the `addons` folder in your servers `csgo` directory
![extract](https://du.hurenso.hn/r/63EGKE.png)
3. Type `sm plugins load hvhgg_item_crash_fix` in your server console

# Credits
- [Metamod:Source](https://www.sourcemm.net/)
- [Sourcemod](https://www.sourcemod.net/)
Binary file added addons/sourcemod/plugins/hvhgg_item_crash_fix.smx
Binary file not shown.
19 changes: 19 additions & 0 deletions addons/sourcemod/scripting/hvhgg_item_crash_fix.sp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <sourcemod>

public Plugin:myinfo =
{
name = "HvH.gg Item Crash Fix",
author = "imi-tat0r",
description = "Fixes the crash related to unsupported inventory items",
version = "1.0",
}

public OnPluginStart()
{
HookUserMessage(GetUserMessageId("SendPlayerItemFound"), ItemFoundMsg, true);
}

public Action:ItemFoundMsg(UserMsg:msg_id, Handle:pb, const players[], playersNum, bool:reliable, bool:init)
{
return Plugin_Handled;
}

0 comments on commit 549c286

Please sign in to comment.