Counter-Strike: Source
0 of 0

File information

Last updated

Original upload

Created by

dnextreme88

Uploaded by

dnextreme88

Virus scan

Safe to use

Tags for this mod

Documentation

Readme

View as plain text

Introduction
============
This is a simple SourceMod plugin personally made by me that announces players being attacked by their teammates on teamchat along with the victim's remaining HP. This plugin also features hiding the default "Player has attacked a teammate" message.

Installation
============
Installation is fairly simple:

1. First, get a dedicated server. You can follow the instructions at this Steam tutorial located at:

https://steamcommunity.com/sharedfiles/filedetails/?id=397365275

2. Download SourceMod and extract the contents to your dedicated server's `cstrike/` directory.

3. Download this plugin and extract the addons contents to your dedicated server's `cstrike/` directory.

4. Run your dedicated server, and set it up based on the Steam tutorial link provided above. On your dedicated server's console, load the plugin with `sm plugins load teammate_hurt_get_hp.smx` to load it individually or `sm plugins unload_all` then `sm plugins refresh` to refresh all your plugins.

Configuration
=============
You can edit the message being sent to chat by editing the file `teammate_hurt_get_hp.sp` under the `scripting/` directory. For each change you make, you must compile this file by dragging it to `compile.exe` located at the same directory. Go to the `compiled/` directory of the same folder and copy the `teammate_hurt_get_hp.smx` file to the plugins folder (e.g. `/addons/sourcemod/plugins`). Reload your plugins.

> NOTE: If you don't want to have colored chats, remove the line `#include ` and change both instances of `CPrintToChatEx` to `PrintToChat`. You don't actually have to remove `morecolors.inc` from the `include/` directory if you have plugins that use this as it will cause those plugins to fail.

Dependencies
============
- morecolors.inc at https://forums.alliedmods.net/showthread.php?t=185016 (included)

Credits
=======
- To Valve for making a wonderful game.
- To Dr. McKay from the SourceMod community for creating morecolors.inc.
- To LinLinLin from the SourceMod community for sending the snippet to remove the default message.
- To Zeromix from Steam for creating a Counter-Strike: Source Dedicated Server.
- To the SourceMod community for making it possible to create and play Counter-Strike: Source with plugins.


Mabuhay!