One-Shot Multikill Detection
4 Attachment(s)
One-Shot Multikill Detection First release: 03/01/2017 Last update: 04/15/2017 - 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
Spoiler
- 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 After it, put the plugin's name on plugins.ini |
Re: Two or more for one detect
litttle horribile for the moment ( i mean the code and the indentation ) .. but i'm waiting :p
Also what about Laser Mod ? You should focus to only 1 plugin until you get something with it ... Can pleaseeeeeee name it "kill two birds with one stone" : ) ) |
Re: Two or more for one detect
Sorry about the code, its my style
Sorry about the indentation, here in my Text editor* its nice. I hate the name you said. |
Re: Two or more for one detect
Quote:
Indentation looks alright to me, not sure what Craxor is talking about. Quote:
As for my suggestions, you should add a multiplugin forward in my opinion, so other plugins could detect such kills (with parameters: who did it, weapon used, array of victim ids, how many victims, array of "was it headshot" booleans for every victim). This would be useful for giving bonus XP and such in other mods, for example. That means that you should add an option to your cvar to disable the message completely and use this only as an API. |
Re: Two or more for one detect
It's possible to make this plugin to look like csgo? I mean that 'dead icons' in right corner (I'm not so advanced in coding, maybe is possible using DLL). Did you understand?
PS: Thanks for source :) |
Re: Two or more for one detect
Quote:
Quote:
That was the first name I found, but I was going to change him, I just was searching a better than the original Sorry about the popular phrase on english, I don't knew it. |
Re: One-Shot Multikill Detection
Quote:
Quote:
Edit: But how suggest you to I add this? Because the event DeathMsg will run only when someone has killed someone. If someone want to give a bonus for who has killed more than 1 player with one bullet, need just add on my source code. |
Re: One-Shot Multikill Detection
Line 303 (shown below) is wrong and will give an error every time.
PHP Code:
More importantly, using GetMessageType() to populate a global variable every time that you use that global variable is unnecessary and confusing (confusing particularly because of the name). Simply do this: PHP Code:
PHP Code:
PHP Code:
About indentation, the only thing that is ugly is that there are three tabs after an equal sign in an assignment statement. Trying to line things up with multiple tabs is guaranteed to look bad in someone's editor. Most of the time, lining assignment statements up like this is adds no value. |
Re: One-Shot Multikill Detection
Sorry about the error, it doesn't give an error for me.
PHP Code:
PHP Code:
This, PHP Code:
Look what I made: PHP Code:
PHP Code:
PHP Code:
|
Re: One-Shot Multikill Detection
Quote:
Also, about when one should use the dot or not, here it's just a style. Quote:
|
All times are GMT -4. The time now is 22:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.