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

amxx reapi CS:GO Remake 2.14.0

Нет прав для скачивания
Установка
Download latest release from here. Extract the archive and drag and drop files in your 'Cstrike' folder.
Настройки
Configuration file can be found here:
https://github.com/ShadowsAdi/CSGOR...amxmodx/configs/plugins/csgor/csgo_remake.cfg

Cvars list:
Код:
// Cvars for plugin "CS:GO Remake" by "Shadows Adi"

// -------------- CORE PLUGIN -------------

// DO NOT MODIFY!
// -
// Default: "Shadows Adi"
csgor_author "Shadows Adi"

// (0|∞) The accounts will be erased in X days of inactivity
// -
// Default: "60"
// Minimum: "0.000000"
csgor_prunedays "60"

//(0|1) Save type || 0 - nVault Save  | 1 - MYSQL Save
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_savetype "0"

//Database Host
// -
// Default: "localhost"
csgor_dbase_host "localhost"

//Database Username
// -
// Default: "username"
csgor_dbase_user "username"

//Database password
// -
// Default: "password"
csgor_dbase_pass "password"

//Database Name
// -
// Default: "database"
csgor_dbase_database "database"

// If cvar "amx_nextmap" doesn't exist, this will be the next map, only if "csgor_competitive_mode" is "1"
// -
// Default: "de_dust2"
csgor_default_map "de_dust2"

// (0|1)  Main menu will open with "M" key
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_override_menu "1"

// (0|1) (0|1|2) HUD Info
// 0 - Deactivated || 1 - Classic HUD || 2 - Advanced HUD
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
csgor_show_hud "2"

// How much points for a HeadShot kill
// (MINIMUM)
// -
// Default: "11"
// Minimum: "0.000000"
csgor_head_minpoints "11"

// How much points for a HeadShot kill
// (MAXIMUM)
// -
// Default: "15"
// Minimum: "0.000000"
csgor_head_maxpoints "15"

// How much points for a kill
// (MINIMUM)
// -
// Default: "6"
// Minimum: "0.000000"
csgor_kill_minpoints "6"

// How much points for a kill
// (MAXIMUM)
// -
// Default: "10"
// Minimum: "0.000000"
csgor_kill_maxpoints "10"

// Drop chance ( case ) if kill is made by HeadShot
// (MINIMUM)
// -
// Default: "25"
// Minimum: "0.000000"
// Maximum: "99.000000"
csgor_head_minchance "25"

// Drop chance ( case ) if kill is made by HeadShot
// (MAXIMUM)
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
csgor_head_maxchance "100"

// Drop chance ( case ) for a basic kill
// (MINIMUM)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "99.000000"
csgor_kill_minchance "0"

// Drop chance ( case ) for a basic kill
// (MAXIMUM)
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
csgor_kill_maxchance "100"

// How much points for an assist
// (MINIMUM)
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "99.000000"
csgor_assist_minpoints "3"

// How much points for an assist
// (MAXIMUM)
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "100.000000"
csgor_assist_maxpoints "5"

// How much points the MVP receive
// (MINIMUM)
// -
// Default: "20"
// Minimum: "0.000000"
csgor_mvp_minpoints "20"

// How much points the MVP receive
// (MAXIMUM)
// -
// Default: "30"
// Minimum: "0.000000"
csgor_mvp_maxpoints "30"

// (0|1) MVP Message Type
//  0 - No Message shown
//  1 - Chat Message
//  2 - HUD Message
//  3 - DHUD Message
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
csgor_mvp_msgtype "0"

// Required points for joining the raffle
// -
// Default: "50"
// Minimum: "1.000000"
csgor_tombola_cost "50"

// (0|1) Possibility to register new accounts
//  0 - New accounts can't be registered
//  1 - New accounts can be registered
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_register_open "1"

// How much points receives the best player from a half
// -
// Default: "300"
// Minimum: "1.000000"
csgor_best_points "300"

// Rank Up Bonus
// Example: "kkccc|300". The player will get: 2 keys and 3 cases and 300 points
// Minimum value: "|" - the player don't receive anything. "|10" - get 10 points. "k|" - get 1 key. "c|" - get 1 case
// -
// Default: "kc|200"
csgor_rangup_bonus "kc|200"

// When destroying the skins, the player receives points.
// 1 / value = how much points the player receives
// -
// Default: "10"
// Minimum: "0.000000"
csgor_return_percent "10"

// Drop type
// 0 - drop cases and keys; 1 - drop only cases, the keys needs to be bought
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_drop_type "1"

// Key Price
// Only if cvar "csgor_drop_type" is "1"
// -
// Default: "250"
// Minimum: "0.000000"
csgor_key_price "250"

// Every X seconds the raffle takes place.
//  1 minute = 60 seconds
// -
// Default: "180"
// Minimum: "0.000000"
csgor_tombola_timer "180"

// After how many seconds the Jackpot starts.
//  1 minute = 60 seconds
// -
// Default: "120"
// Minimum: "0.000000"
csgor_jackpot_timer "120"

// (0|1) Two halfs each of 15 rounds are played.
// After the first half, the teams are changing + round restart.
// After the second half, map is changing.
// Pay attention! This needs "mapcycle.txt" configured right!
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_competitive_mode "1"

// WarmUp Time
// -
// Default: "60"
// Minimum: "1.000000"
csgor_warmup_duration "60"

// (0|1) Show other player's drop.
// 0 - Show the drop only to the beneficiary
// 1 - Show the drop to all palyers.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_show_dropcraft "1"

// The quota by which the minimum price of the key / box is multiplied to get the MAXIMUM price
// -
// Default: "20"
// Minimum: "1.000000"
csgor_item_cost_multiplier "20"

// After how long the player can receive the bonus again?
// Value must be in hours.
// -
// Default: "24"
// Minimum: "1.000000"
csgor_bonus_time "24"

// The time interval when the used promocode will be reset.
// Recommended value to be greater than 1
// -
// Default: "7"
// Minimum: "0.000000"
csgor_prune_promocodes "7"

// The interval when the roulette starts again
// The value needs to be in seconds.
// It's recommended that the value can be divided by 60
// -
// Default: "300"
// Minimum: "1.000000"
csgor_roulette_cooldown "300"

// The price of a chat prefix
// -
// Default: "800"
// Minimum: "1.000000"
csgor_chattag_cost "800"

// The price of a color for the chat prefix
// -
// Default: "500"
// Minimum: "1.000000"
csgor_chattag_color_cost "500"

// (0|1) Weapons with silencer will have damage similar to that of CS:GO's ones ( M4A1-S ; USP-S ).
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_silenced_weap_type "1"

// (0|1) Respawn Mode
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_respawn_enable "0"

// How much seconds till player will respawn. If "csgor_respawn_enable" is "1".
// -
// Default: "3"
csgor_respawn_delay "3"

// Chance of receiving a drop
// Between 0 and 99
// The higher the number, the less often you receive a drop
// -
// Default: "85"
// Minimum: "0.000000"
// Maximum: "99.000000"
csgor_dropchance "85"

// How many scraps do you need to create a rare skin
// -
// Default: "10"
// Minimum: "1.000000"
csgor_craft_cost "10"

// How many scraps do player need to create a StatTrack skin?
// -
// Default: "30"
// Minimum: "1.000000"
csgor_craft_stattrack_cost "30"

// The minimum price for a box put up for sale
// -
// Default: "100"
// Minimum: "1.000000"
csgor_case_min_cost "100"

// The minimum price for a key put up for sale
// -
// Default: "100"
// Minimum: "1.000000"
csgor_key_min_cost "100"

// How many seconds do you have to wait until you can place a new ad
// -
// Default: "30"
// Minimum: "1.000000"
csgor_wait_for_place "30"

// Acces flags for plugin commands.
// Maximum 9 flags.
// -
// Default: "a"
csgor_commands_access "a"

// Players freezetime ( exepct when teams are changing and end map )
// -
// Default: "2"
csgor_freezetime "0"

// Players start money
// -
// Default: "850"
csgor_startmoney "850"

// Fast resources load for players.
// -
// Default "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
csgor_fast_load "1"

// Velocity ( in floating value ) of a grenade when it's in short throw mode.
// -
// Default "0.50"
csgor_grenade_shortthrow_velocity "0.50"

// (0|1) Enable / Disable Round End sounds.
// Minimum: "0.000000"
// Maximum: "99.000000"
// Default "1"
csgor_enable_roundend_sounds "1"

// (0|1) Show / Hide Copyright Information ( Plugin Author )
// Minimum: "0.000000"
// Maximum: "1.000000"
// Default "1"
csgor_show_copyright "1"

// -------------- GIVEAWAY PLUGIN -------------

// GiveAway a StatTrack skin?
// -
// Default: "1"
csgor_giveaway_stattrack "1"

// Number of rounds when giveaway is finising.
// -
// Default "13"
csgor_giveaway_countdown "13"

// Number of required players to start a giveaway.
// -
// Default "2"
csgor_giveaway_minplayers "2"

// -------------- RANK UP BONUS PLUGIN -------------
// Multiplicator factor for rankup bonus.
// -
// Default "3"
csgor_bonus_rankup "3"

// -------------- REGISTRATION BONUS PLUGIN -------------
// Quantity of cases which a new player receives when register an account.
// -
// Default "10"
csgor_user_reg_cases "10"

// Quantity of keys which a new player receives when register an account.
// -
// Default "10"
csgor_user_reg_keys "10"

// Quantity of scraps which a new player receives when register an account.
// -
// Default "10"
csgor_user_reg_scraps "10"
API
API Can be found on GitHub:
https://github.com/ShadowsAdi/CSGOR...ons/amxmodx/scripting/include/csgo_remake.inc

Код:
#if defined _csgo_remake_included
    #endinput
#endif

#define _csgo_remake_included

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

enum _:FileSections
{
    secRanks = 1,
    secDefaultModels,
    secSkins,
    secPromocodes,
    secSortedMenu,
    secDynamicMenu
}

/**
* Returns a player's points.
*
* @param id        Player index.
*
* @return      Amount of points. -1 on error.
*/
native csgor_get_user_points(id);

/**
* Sets a player's points to the desired amount.
*
* @param id        Player index.
* @param amount    A valid amount of points.
*
* @return          1 on success, -1 otherwise.
*/
native csgor_set_user_points(id, amount);

/**
* Returns a player's dusts.
*
* @param id        Player index.
*
* @return          Amount of dusts. -1 on error.
*/
native csgor_get_user_dusts(id);

/**
* Sets a player's dusts to the desired amount.
*
* @param id        Player index.
* @param amount    A valid amount of dusts.
*
* @return          1 on success, -1 otherwise.
*/
native csgor_set_user_dusts(id, amount);

/**
* Returns a player's keys.
*
* @param id        Player index.
*
* @return          Amount of keys. -1 on error.
*/
native csgor_get_user_keys(id);

/**
* Sets a player's keys to the desired amount.
*
* @param id        Player index.
* @param amount    A valid amount of keys.
*
* @return          1 on success, -1 otherwise.
*/
native csgor_set_user_keys(id, amount);

/**
* Returns a player's cases.
*
* @param id        Player index.
*
* @return      Amount of cases. -1 on error.
*/
native csgor_get_user_cases(id);

/**
* Sets a player's cases to the desired amount.
*
* @param id        Player index.
* @param amount    A valid amount of cases.
*
* @return      1 on success, -1 otherwise.
*/
native csgor_set_user_cases(id, amount);

/**
* Returns a player's Rank ID. Set Rang name in output.
*
* @param id        Player index.
* @param output    Output buffer for rang name.
* @param len       Max length of a output buffer.
*
* @return      Player Rank ID. -1 on error.
*/
native csgor_get_user_rank(id, output[], len);

/**
* Sets a player's Rank ID. Set the appropriate amount of kills.
*
* @param id        Player index.
* @param rankid    A valid Rank ID.
*
* @return      1 on success, -1 otherwise.
*/
native csgor_set_user_rank(id, rangid);

/**
* Returns a player's amount of skins by specified Skin ID.
*
* @param id        Player index.
* @param skinid    A valid Skin ID.
*
* @return      Amount of skins. -1 on error.
*/
native csgor_get_user_skins(id, skinid);

/**
* Sets a player's all skins.
*
* @param id        Player index.
*/
native csgor_set_user_all_skins(id);

/**
* Sets a player's skins (by specific Skin ID) to desired amount.
*
* @param id        Player index.
* @param skinid    A valid Skin ID.
* @param amount    A valid amount of skins.
*
* @return      1 on success, -1 otherwise.
*/
native csgor_set_user_skins(id, skinid, amount);

/**
* Returns total of skins in Array.
*
* @return          Amount of total skins.
*/
native csgor_get_skins_num();

/**
* Get skin name with given skinID.
*
* @param skinid    Skin index.
* @param output    Output buffer for skin name.
* @param lem       Max length of a output buffer.
*
* @return      1 on success, -1 otherwise.
*/
native csgor_get_skin_name(skinid, output[], len);

/**
* Returns whether a player is logged.
*
* @param id        Player index.
*
* @return      True if it is, false otherwise.
*/
native csgor_is_user_logged(id);

/**
* Returns if is the half round.
*
* @return          True if it is, false otherwise.
*
*/
native csgor_is_half_round();

/**
* Returns if is the last round.
*
* @return          True if it is, false otherwise.
*
*/
native csgor_is_last_round();

/**
* Returns if item is a skin, a case or a key.
*
* @type            Bool
*
* @return          True if it is, false otherwise.
*
*/
native csgor_is_good_item(item);

/**
* Returns if item is a skin.
*
* @type            Bool
*
* @return          True if it is, false otherwise.
*
*/
native csgor_is_item_skin(item);

/**
* Returns if warmup is active.
*
* @type            Bool
*
* @return          True if it is, false otherwise.
*
*/
native csgor_is_warmup();

/**
* Returns ranks num from array.
*
* @noparam
*
* @return          Ranks Num from Array.
*/
native csgor_ranks_num();

/**
* Returns skin name and skin index in array as string
*
* @param skinName[]        Skin name to search for index in array.
*
* @return                 Skin index in array.
*
*/
native csgor_get_skin_index(skinName[]);

/**
* Returns if player's skin is StatTrack.
*
* @param id            Player index.
* @type            Bool
*
* @return          True if it is, false otherwise.
*
*/
native csgor_is_skin_stattrack(id);

/**
* Returns amount of StatTrack Skins on certain SkinID.
*
* @param id            Player index.
* @param skinid        Skin ID.
*
* @return          Amount of StatTrack Skins Num.
*
*/
native csgor_get_user_statt_skins(id, skinID);

/**
* Sets certain StatTrack Skins with amount given.
*
* @param id            Player index.
* @param skinid        Skin ID.
* @param amount        Amount of StatTrack Skins to set.
*
* @return          -1 on error.
*
*/
native csgor_set_user_statt_skins(id, skinID, amount);

/**
* Returns player's kills on StatTrack Weapon in his viewmodel.
*
* @param id            Player index
*
* @return          Kills Amount.
*
*/
native csgor_get_user_statt_kills(id);

/**
* Sets player's kills on StatTrack Weapon in his viewmodel.
*
* @param id            Player index.
* @param amount        Amount of StatTrack skins.
*
* @return          Skin index in array.
*
*/
native csgor_set_user_statt_kills(id, amount);

/**
* Copies player's StatTrack skin name from his viewmodel.
*
* @param id            Player index.
* @param skinname      Buffer to copy name of the StatTrack Weapon in his viewmodel.
* @param len           Buffer lenght.
*
* @return              -1 on error.
*
*/
native csgor_get_user_stattrack(id, skinname[], len);

/**
* Sets a random StatTrack skin by given amount.
*
* @param id            Player index.
* @param amount        Amount of StatTrack Skins.
*
* @return              -1 on error.
*
*/
native csgor_set_random_stattrack(id, amount);

/**
* Returns location of configuration file.
*
* @param szLocation    Buffer to copy config location
*
* @noreturn
*
*/
native csgo_get_config_location(szLocation[64]);

/**
* Called when a player log in account.
*
* @param id            Player index.
*
* @return              True if it is, false otherwise.
*
* @noreturn
*/
forward csgor_user_logging_in(id);

/**
* Called when a player log out from his account.
*
* @param id            Player index.
*
* @noreturn
*/
forward csgor_user_logging_out(id);

/**
* Called when a player register a new account.
*
* @param id            Player index.
*
* @noreturn
*/
forward csgor_user_register(id);

/**
* Called when a player is entering a wrong password.
*
* @param id               Player index.
* @param fails            How many times player entered the wrong password.
*
* @noreturn
*/
forward csgor_user_password_failed(id, iFail);

/**
* Called when a player make assist.
*
* @param id                Assist index.
* @param killer            Killer index.
* @param victim            Victim index.
* @param head              1 if HeadShot, 0 otherwise.
*
* @noreturn
*/
forward csgor_user_assist(id, killer, victim, head);

/**
* Called when a player is MVP.
*
* @param id                MVP index.
* @param event             Event type. (0 - Top Killer, 1 - Planter, 2 - Defuser)
* @param kills             Player's kills.
*
* @noreturn
*/
forward csgor_user_mvp(id, event, kills);

/**
* Called when a player is opening a case successfuly.
*
* @param id                Player index.
*
* @noreturn
*/
forward csgor_user_case_open(id);

/**
* Called when a player is crafting a weapon successfuly.
*
* @param id                Player index.
*
* @noreturn
*/
forward csgor_user_craft(id);

/**
* Called when a player is leveling up.
*
* @param id                Player index.
* @param szRank            Buffer to copy rank name to.
* @param iRank             Rank index in Array.
*
* @noreturn
*/
forward csgor_user_levelup(id, szRank[], iRank);

/**
* Called when mod has read all the configuration files.
*
* @param iSuccess          1 on success, 0 otherwise.
*
* @noreturn
*/
forward csgor_on_configs_executed(iSuccess);

/**
* Called when a player is eligible for drop.
*
* @param id                Player index.
*
* @noreturn
*/
forward csgor_on_user_drop(id)

/** Called while the configuration file is currently in reading
*
* @param szBuffer[]        Buffer which stores data from every line.
* @param iSection          Indicates currently section from file.
* @param iLine             Indicates line number in file.
*
* @noreturn
*/
forward csgor_read_configuration_data(szBuffer[], FileSections:iSection, iLine)
Сверху Снизу