Участник
Пользователь
- Сообщения
- 94
- Реакции
- 13
- Помог
- 2 раз(а)
- Ошибка
-
L 12/14/2019 - 18:43:32: [ReAPI] REU_GetAuthtype: invalid player index 0 [arg_index]
L 12/14/2019 - 18:43:32: [AMXX] Displaying debug trace (plugin "Steam_GSClient_Bonus.amxx", version "1.0")
L 12/14/2019 - 18:43:32: [AMXX] Run time error 10: native error (native "REU_GetAuthtype")
L 12/14/2019 - 18:43:32: [AMXX] [0] Steam_GSClient_Bonus.sma::GiveBonus (line 56)
- ОС
- Linux
- Amx Mod X
-
1.9.0
- Билд
-
version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.692-dev
Build date: 17:52:38 Sep 30 2019 (1997)
Build from: https://github.com/dreamstalker/rehlds/commit/e7232be
- ReGamedll
-
game version
ReGameDLL version: 5.12.0.426-dev+m
Build date: 01:08:25 Dec 13 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/19269aa
- Версия Metamod
-
meta version
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
meta list
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 2] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 3] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC4 ini ANY ANY
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
[11] ReAPI RUN - reapi_amxx_i386.so v5.11.0.191-dev pl9 ANY Never
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
[14] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
[15] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl9 ANY Never
[16] AuthEmu RUN - authemu_amxx_i386.so v4.2.12.311-dev+m pl9 ANY Never
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
[18] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
[19] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl9 ANY ANY
19 plugins, 19 running
- Список плагинов
-
amxx plugins
Currently loaded plugins:
name version author file status
[ 1] GameCMS_API 5.3.5 zhorzh78 gamecms_api_5.3 running
[ 2] GameCMS_GagManager 2.2.3 zhorzh78 gamecms_gagmana running
[ 3] GameCMS_Present 1.6.6 zhorzh78 gamecms_present running
[ 4] GameCMS_Informer 2.3 API5 zhorzh78 forum_informer. running
[ 5] GameCMS BonusSystem 1.1 +- DUKKHAZ0R gamecms_bonus.a running
[ 6] FreshBans 1.4.2b kanagava fresh_bans_142_ running
[ 7] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 8] Aliases checker 1.0.3 kanagava alias_detector. running
[ 9] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx running
[ 10] AuthEmu API 1.0 Dev-MS Team authemu.amxx running
[ 11] New Kick Menu 1.4.2 Radius newkickmenu.amx running
[ 12] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 13] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 14] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 15] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 16] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 17] Bets 1x1 0.1 Alpha LexaG (vk/id3266 bets_1x1.amxx running
[ 18] Map Manager: Core 3.0.4 Mistrick map_manager_cor running
[ 19] Map Manager: Scheduler 0.1.2 Mistrick map_manager_sch running
[ 20] Map Manager: Rtv 0.1.0 Mistrick map_manager_rtv running
[ 21] Map Manager: Nominatio 0.1.0 Mistrick map_manager_nom running
[ 22] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 23] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 24] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 25] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 26] [ReAPI] BitCoins Core 2.1.3 ApXuTekToR BitCoins_Core.a running
[ 27] [ReAPI] BitCoins Rewar 1.0 ApXuTekToR BitCoins_Reward running
[ 28] Coins Giving 2.1.1 ApXuTekToR BitCoins_Editor running
[ 29] [ReAPI] BitCoins Shop 2.1.1 ApXuTekToR BitCoins_Shop.a running
[ 30] [ReAPI] Vip System 1.1 ArKaNeMaN + ApXu VipSystem.amxx running
[ 31] Heard Shells 0.0.1 Vaqtincha hearts_from_awp running
[ 32] Give Flags 1.0 ApXuTekToR GiveFlags.amxx running
[ 33] [ReAPI] Player Model M 2.1 ApXuTekToR PlayerModelMana running
[ 34] CMSPresent_Addition 2.0 ApXuTekToR CMSPresent_Addi running
[ 35] KillScreenFade 0.0.6 Vaqtincha + ApXu KillScreenFade. running
[ 36] Server Menu 1.1.1 ApXuTekToR ServerMenu.amxx running
[ 37] DemoRecoder 2.0 ApXuTekToR DemoRecord.amxx running
[ 38] CMSGive_RegVip 1.0 ApXuTekToR CMSGive_RegVip. running
[ 39] Double Experience 1.0 ApXuTekToR DoubleExperienc running
[ 40] [ReAPI] AwpQuota 2.0 PAffAEJIkA + ApX AwpQuota.amxx running
[ 41] Frags Converter 1.0 ApXuTekToR Frags_Converter running
[ 42] [ReAPI] Parachute 1.0 ApXuTekToR Parashute.amxx running
[ 43] PingCheker 1.0 ApXuTekToR PingCheker.amxx running
[ 44] [ReAPI] BonusBest Dama 2.1 ApXuTekToR BonusBest_Damag running
[ 45] [SM] Auto-Give 0.1 V1adJkee sell_module.amx running
[ 46] RevardSystem 2.1 ApXuTekToR RevardSystem.am running
[ 47] Steam_GSClient_Bonus 1.0 ApXuTekToR Steam_GSClient_ debug
[ 48] [183] Damager RBS 19.08.30 SKAJIbnEJIb damager_rbs.amx running
[ 49] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 50] Lite Translit 2.8 neygomon lite_translit.a running
[ 51] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 52] Weapon Restrict 2.1 s1lent & neugomo weaponrest.amxx running
[ 53] Players Menu 1.7 neugomon players_menu.am running
[ 54] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 55] Advert Messages 1.22 neygomon adverts.amxx running
[ 56] FM ResetScore 0.1 neygomon fm_rs.amxx running
[ 57] ScreenMaker 1.1 neygomon screen_maker.am running
[ 58] C4 Timer on roundtime 0.3.3a neygomon c4timer.amxx running
[ 59] [reAPI] Flash Control 1.1 neugomon flash_control.a running
[ 60] [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block_fin running
[ 61] Last players sound 1.0 dev-cs community last_players_so running
[ 62] [DD] Quick defuse 1.0 Deadly|Darkness dd_qdefuse.amxx running
[ 63] NY Kill Sprite 1.0 kRyMcHaN1n kill_effect.amx running
[ 64] Snow 0.1 XXX snow.amxx running
[ 65] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 66] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 67] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 68] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 69] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 70] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 71] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 72] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 73] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
73 plugins, 73 running
- Автор плагина
- ApXuTekToR
- Версия плагина
- 1.0
- Исходный код
-
#include <amxmodx>
#include <gamecms5>
#include <authemu>
#include <reapi>
/* Настройки */
#define BONUS_TIME 5.0 // Время через которое будет выдана награда после входа игрока на сервер
#define TYPE_JOB 2 /* Тип интеграции со система ранга
1 - Army Ranks Ultimate
2 - Advanced Expirience System
3 - CMSStats Ranks */
/* Далее настроек нет */
#if TYPE_JOB == 1
native ar_set_user_addxp(id, addxp);
native ar_add_user_anew(admin, player, anew);
#endif
#if TYPE_JOB == 2
#include <aes_v>
#endif
#if TYPE_JOB == 3
native cmsranks_set_user_addxp(id, value);
native cmsranks_add_user_anew(id, value);
#endif
public plugin_init() {
register_plugin("Steam_GSClient_Bonus", "1.0", "ApXuTekToR");
register_cvar("sgsc_bonus_type", "1");
register_cvar("sgsc_bonus_money", "500");
register_cvar("sgsc_bonus_flags", "t");
register_cvar("sgsc_bonus_exp", "1");
register_cvar("sgsc_bonus_anew", "1");
new szConfigsDir[256];
get_localinfo("amxx_configsdir", szConfigsDir, charsmax(szConfigsDir));
server_cmd("exec %s/Steam_GSClient_Bonus.cfg", szConfigsDir);
server_exec();
register_srvcmd("SGSCBonus_lockmap", "Check_LockMap");
}
public client_putinserver(id) {
set_task(BONUS_TIME, "GiveBonus");
}
public GiveBonus(id) {
static c_BonusType, c_GiveMoney, c_GiveFlags[16], c_GiveExp, c_GiveAnew;
c_BonusType = get_cvar_num("sgsc_bonus_type");
c_GiveMoney = get_cvar_num("sgsc_bonus_money");
get_cvar_string("sgsc_bonus_flags", c_GiveFlags, charsmax(c_GiveFlags));
c_GiveExp = get_cvar_num("sgsc_bonus_exp");
c_GiveAnew = get_cvar_num("sgsc_bonus_anew");
if(is_user_steam(id) || is_user_authemu(id)) {
if(c_BonusType == 1) {
rg_add_account(id, c_GiveMoney, AS_ADD, true);
client_print_color(id, print_team_default, "^3[^4SGSC^3] ^1Вы получили ^3[^4%d ^1$^3] ^1за ^4Лицензионную ^1сборку", c_GiveMoney);
} else if(c_BonusType == 2) {
cmsapi_set_user_flags(id, c_GiveFlags, -1, "За Steam и GSClient", false, true);
client_print_color(id, print_team_default, "^3[^4SGSC^3] ^1Вы получили ^3[^4Флаги^3] ^1за ^4Лицензионную ^1сборку");
} else if(c_BonusType == 3) {
PlayerGivePlayerEXP(id, c_GiveExp);
client_print_color(id, print_team_default, "^3[^4SGSC^3] ^1Вы получили ^3[^4%d ^1Exp^3] ^1за ^4Лицензионную ^1сборку", c_GiveExp);
} else if(c_BonusType == 4) {
PlayerGivePlayerAnew(id, c_GiveAnew);
client_print_color(id, print_team_default, "^3[^4SGSC^3] ^1Вы получили ^3[^4%d ^1Anew^3] ^1за ^4Лицензионную ^1сборку", c_GiveAnew);
}
}
}
stock PlayerGivePlayerEXP(index, count) {
#if TYPE_JOB == 1
ar_set_user_addxp(index, count);
#elseif TYPE_JOB == 2
aes_add_player_exp_f(index, count);
#elseif TYPE_JOB == 3
cmsranks_set_user_addxp(index, count);
#endif
}
stock PlayerGivePlayerAnew(index, count) {
#if TYPE_JOB == 1
ar_add_user_anew(-1, index, count);
#elseif TYPE_JOB == 2
aes_add_player_bonus_f(index, count);
#elseif TYPE_JOB == 3
cmsranks_add_user_anew(index, count);
#endif
}
public Check_LockMap() {
new getmap[32], map[32];
read_args(getmap, charsmax(getmap));
remove_quotes(getmap);
get_mapname(map, charsmax(map));
if(!strcmp(getmap, map, true)) {
pause("ad");
}
}
Добрый день. Ребят, подскажите пожалуйста, вроде все верно сделал, но почему то жалуется на проверку
Данный натив брал в authemu.inc.
native bool:is_user_authemu(const index);
Данный натив брал в authemu.inc.
В этой теме было размещено решение! Перейти к решению.