Иконка ресурса

amxx reapi Most Valuable Player ( MVP ) 2.8.0

Нет прав для скачивания
Установка
  • 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.
  • Open MVPTracks.ini
    • Insert your database credentials ( optional )
    • Add your custom tracks ( optional )
  • Restart your server or change the map.
Настройки
Main configuration file is in the file MVPTracks.ini, you will find all settings along with this plugin and you can add tracks in the [TRACKS SECTION]
API
Updated API can be found on GitHub:
https://github.com/ShadowsAdi/MostV...in/scripting/include/most_valuable_player.inc


Код:
#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,
    KILLER_MVP /* Just for default: case in PlayTrack(), unusable */
}

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

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

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

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

/**
* @description         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);

/**
* @description         Returns Player's MVPs.
*
* @param id            Player index.
*
* @return                Player index. -1 on error.
*/
native get_user_mvps(id);

/**
* @description         Returns Player's selected Track.
*
* @param id            Player index.
*
* @return              Player index. -1 on error.
*/
native get_user_mvp_track(id);

/**
* @description         Returns informations about certain Track.
*
* @param iTrackID        Track index.
* @param szName[]        Variable to store track name.
* @param iNameLen         Track name lenght.
* @param szPath[]        Variable to store track's path.
* @param iPathLen         Track path lenght.
*
* @return              1 on success. -1 if TrackID is invalid or on error.
*/
native get_mvp_track_info(iTrackID, szName[], iNameLen, szPath[], iPathLen)

/**
* @description         Returns MVP of the round index.
*
* @noparam
*
* @return              MVPlayer index. -1 if there is no MVP.
*/
native get_mvp_index()
Сверху Снизу