Raised This Month: $70 Target: $400
 17% 

MVP Of the Round v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 10-04-2020 , 05:27   MVP Of the Round v1.0
Reply With Quote #1

Most Valuable Player Of the Round 1.0

Informations
Description
This script can detect the best killer or the planter ( if the bomb exploded ) or the defuser ( if the planted bomb is defused ).
After the event is detected, it is showing a colored print in chat to all conected players.
Also, this script is supporting reHLDS's ReAPI, you can uncomment line 4
PHP Code:
#define USE_REAPI 
to use ReAPI instead of HamSandwich and some events.

Requirements
  • AmxModX 1.9.0+
  • Hamsandwich module
  • ReAPI Module ( reHLDS Needed )
Installation
  • Download the archive from down below.
  • Compile most_valuable_player.sma using a local compiler or a web compiler which supports custom includes.
  • Put most_valuable_player.amxx in amxmodx/plugins folder
  • Go to amxmodx/configs/plugins.ini, open the file and write on the last line most_valuable_player.amxx.
  • Restart your server or change the map.
API
What mean API ? API is an abbreviation from Application Programming Interface and it's used to make external scripts which are for compatibility purpose.
INC File:
PHP Code:
/* Sublime AMXX Editor v4.2 */

#if defined _most_valuable_player_included
    #endinput
#endif
#define _most_valuable_player_included

#pragma reqlib most_valuable_player
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib most_valuable_player
#endif

enum WinScenario
{
    
NO_SCENARIO = -1,
    
TERO_MVP 0,
    
CT_MVP,
    
KILLER_MVP_TERO,
    
KILLER_MVP_CT
}

enum _:DamageData
{
    
iDamage 0,
    
iHeadshotsDmg
}

/**
 * @description            Multiforward called when a round end.
 *
 * @param scenario        Scenario index. See WinScenario enum
 * @return                Scenario index.
 */
forward mvp_scenario(WinScenario:scenario);

/**
 * Returns player's MVP kills.
 *
 * @param id        Player index.
 * @return            Amount of kills. -1 on error.
 */
native get_user_mvp_kills(id);

/**
 * Returns top killer's index.
 *
 * @param id        Top killer index.
 * @return            Top killer's index. -1 on error.
 */
native get_user_mvp_topkiller(id);

/**
 * Returns player's MVP damage.
 *
 * @param id        Player index.
 * @return            Player index. -1 on error.
 */
native get_user_mvp_damage(id);

/**
 * Returns player's MVP damage made with headshot.
 *
 * @param id        Player index.
 * @return            Player index. -1 on error.
 */
native get_user_mvp_hs_damage(id); 
Credits

Amxx-BG for providing API for ReAPI
Destro- for his Sublime AMXX-Editor
To Do List
  • Making a global variable to store players name.
  • Add soundtracks which can be selected by every player, played when the player is MVP Of the Round. Proposed by @OciXCrom here
  • Add CS:GO like hud round end style. Proposed by DJEarthQuakehere
Issues
  • No issues
ChangeLog
  • V 1.0:
  • Initial Release
Also, this project is available on GitHub Here
Attached Files
File Type: zip MostValuablePlayer-1.0.zip (5.0 KB, 30 views)
File Type: sma Get Plugin or Get Source (most_valuable_player.sma - 29 views - 9.4 KB)
File Type: inc most_valuable_player.inc (1.2 KB, 16 views)
__________________

Last edited by Shadows Adi; 10-08-2020 at 14:40.
Shadows Adi is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-07-2020 , 03:45   Re: MVP Of the Round v1.0
Reply With Quote #2

Nice CS:GO port. It's remarkable. The parallel of style. Emp`s, 3D 'Vote Map' interactive map changer to Counter-Strike:Global Offensive Most Valuable Player. End game MVP token graphics. Food for thought.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-07-2020 , 06:37   Re: MVP Of the Round v1.0
Reply With Quote #3

It would be great if you also included music to go along with it, just like in CS:GO. Let the users choose their own soundtrack, probably leave an option to include custom soundtracks if porting them from CS:GO isn't allowed.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 10-07-2020 , 09:19   Re: MVP Of the Round v1.0
Reply With Quote #4

Quote:
Originally Posted by DJEarthQuake View Post
Nice CS:GO port. It's remarkable. The parallel of style. Emp`s, 3D 'Vote Map' interactive map changer to Counter-Strike:Global Offensive Most Valuable Player.
Thanks.
Quote:
Originally Posted by DJEarthQuake View Post
End game MVP token graphics. Food for thought.
You want to refer to make it like a credits system, which will be used for @OciXCrom idea from down below?

Quote:
Originally Posted by OciXCrom View Post
It would be great if you also included music to go along with it, just like in CS:GO. Let the users choose their own soundtrack, probably leave an option to include custom soundtracks if porting them from CS:GO isn't allowed.
Maybe I will work to something like this. If it's requested I will do it until then it remains only in the planning phase.
__________________

Last edited by Shadows Adi; 10-07-2020 at 09:20.
Shadows Adi is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-07-2020 , 10:09   Re: MVP Of the Round v1.0
Reply With Quote #5

Copyrighted materials. Get written permission first. It is safer to let the users pick tunes. Credits to achieve what? Play the songs? That's a good one and funny too.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 10-07-2020 , 10:22   Re: MVP Of the Round v1.0
Reply With Quote #6

Quote:
Originally Posted by DJEarthQuake View Post
Copyrighted materials. Get written permission first. It is safer to let the users pick tunes. Credits to achieve what? Play the songs? That's a good one and funny too.
Yea, there are a lot of copyrighted materials, but @NoCopyrightSounds it's providing "free to use music to the content creator community". But I can make request a Commercial License Form for music acording to their Usage Policy and of course I will credit the artists and songs used.

Added on to To Do List
__________________

Last edited by Shadows Adi; 10-07-2020 at 12:16.
Shadows Adi is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-08-2020 , 06:52   Re: MVP Of the Round v1.0
Reply With Quote #7

Music, I type mpg123 and a website CLI. As far as making the end game graphics to finish port matching it to CS:GO that was all I was referring to. DHUD would make a large badge to keep it low overhead and simple.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell

Last edited by DJEarthQuake; 10-08-2020 at 06:54. Reason: Posted in mid sentence!! WTF
DJEarthQuake is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:56.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode