- Description
This plugin allow players to see if someone has killed two or more players just with one bullet.
- Cvars
Code:
// (c) One-Shot MultiKill Detection
// Used for check the type of message that will show when someone
// kill two or more players with one bullet
// 2 = CHAT, 1 = LOG MESSAGE, 0 = HUD MESSAGE
osmd_messagetype "0"
// Used for turn on/off the plugin
osmd_enabled "1"
If you want to add different colors to the message on CHAT mode, always use ^4, ^3 or ^1. In the current moment I don't know how I can fix the problem using !g, !t and !y, because the format replace_all() is replacing only ^4, ^3 and ^1 for don't show that icons to the hud and log message. An example: if you add !g, the word 'grenade' will show renade because the replace_all() is removing the !g..
01/11/2017 - v1.4
* Code optimization
* Added +0.5 seconds to show the message on Death Msg. This is the unique solution I got for fix the problem that shows the message aleatory.
* Added MultiLanguage
ºCode edited:
. Removed a check for see if is not a TK because a condition 1>0 at register_event() already checks it.
04/15/2017 - v1.6
. Added osmd_api_only cvar for the case if someone want the plugin only with the API.
. Removed the userWeapon global.
. Using the set_task() for parse all the API infos
. Uploaded the .cfg file.
- How to install?
Put the .sma file on dir/addons/amxmodx/scripting
Put the .amxx file on dir/addons/amxmodx/plugins
Put the folder OneShotMD on dir/addons/amxmodx/configs
Put the file osm_detector.txt on dir/addons/amxmodx/data/lang