Администратор
- Сообщения
- 3,023
- Реакции
- 1,731
- Помог
- 79 раз(а)
Основная информация
Проблема: Некорректно работают бонусы в AES 0.5
Ошибка:
Amx Mod X: ReAMXX
Билд:
ReGamedll:
Список модулей:
Список плагинов:
Список метамодулей:
Исходник:
Комментарий:
в bonus.ini есть настройка бонусов:
если поставить round = 2, то со 2 раунда, как написано в инструкции, взять не получается, менюшка не активна, и в 5, 10 раунде так же остается неактивной.
Дальше есть ещё проблема с диглом и гранатой в бонусах
МегаГраната(+300%) не наносит столько урона, наносит как обычная.
МегаДигл(+200%) не наносит столько урона, наносит как обычный.
Проблема: Некорректно работают бонусы в AES 0.5
Ошибка:
Дополнительная информацияНе работает активация функции round и увеличение урона
Amx Mod X: ReAMXX
Билд:
Код:
Build date: 20:24:57 Mar 20 2017 (1073)
Build from: https://github.com/dreamstalker/rehlds/commit/7e05e65
ReGamedll:
Код:
ReGameDLL version: 5.2.0.180-dev
Build date: 04:41:17 Mar 10 2017
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/bf8bda0
Список модулей:
Код:
[ 1] dummy_csx 1.0 AGHL.RU Dev Team running
[ 2] ReAimDetector 0.1.5 ReHLDS Team running
[ 3] MySQL 1.8.3-Re AMX Mod X Dev Team running
[ 4] FakeMeta 1.8.3-Re AMX Mod X Dev Team running
[ 5] nVault 1.8.3-Re AMX Mod X Dev Team running
[ 6] Ham Sandwich 1.8.3-Re AMX Mod X Dev Team running
[ 7] CStrike 1.8.3-Re AMX Mod X Dev Team running
[ 8] ReAPI 5.1.0.105- Asmodai & s1lent running
[ 9] Fun 1.8.3-Re AMX Mod X Dev Team running
[10] Engine 1.8.3-Re AMX Mod X Dev Team running
[11] RegEx 1.8.3-Re AMX Mod X Dev Team running
11 modules, 11 correct
Список плагинов:
Код:
[ 1] ReAimDetector API 0.1.5 ReHLDS Team reaimdetector.a running
[ 2] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 3] Admin Load 3.9.0 Dev F@nt0M adminload_3_9_0 running
[ 4] FreshBan 1.3.1 kanagava fresh_bans_131- running
[ 5] Gag Me 1.8.0 Radius gag_me.amxx debug
[ 6] client_buy forward 0.1.1 ConnorMcLeod client_buy.amxx running
[ 7] Team Flash Control 1.3.0 Radius team_flash_cont debug
[ 8] Best Damage Bonus 0.0.3 Vaqtincha BestDamageBonus debug
[ 9] VIP Account Additions 2.23a3 ill(+wopox) vip_ill_wopox.a debug
[ 10] Lite NightMode 1.0.6 neygomon lite_nightmode. running
[ 11] Map Spawns Editor 1.0.16 iG_os Map_Spawns_Edit running
[ 12] Block Spawn For Reconn 0.1 Bos93 no_auto_spawn_S running
[ 13] Simple Admin Chat 1.1 ill simple_admin_ch running
[ 14] Change Game Name 1.2 GoldSrc Team ChangeGameName. running
[ 15] New Kick Menu 1.2.8 Radius newkickmenu.amx running
[ 16] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql_fa running
[ 17] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr running
[ 18] Top Awards 0.1 F@nt0M top_awards_fant running
[ 19] say /me and /hp 1.33 neygomon sayme.amxx running
[ 20] Info Rank 0.4.5 ConnorMcLeod info_rank.amxx debug
[ 21] Admin Commands 1.8.3-Re AMXX Dev Team admincmd.amxx running
[ 22] Menus Front-End 1.8.3-dev+ AMXX Dev Team menufront.amxx running
[ 23] Commands Menu 1.8.3-Re AMXX Dev Team cmdmenu.amxx running
[ 24] Players Menu 1.8.3-Re AMXX Dev Team plmenu.amxx running
[ 25] Maps Menu 1.8.3-Re AMXX Dev Team mapsmenu.amxx running
[ 26] Admin Chat 1.8.3-Re AMXX Dev Team adminchat.amxx running
[ 27] Admin Votes 1.8.3-Re AMXX Dev Team adminvote.amxx running
[ 28] Stats Configuration 1.8.3-Re AMXX Dev Team statscfg.amxx running
[ 29] Restrict Weapons 1.8.3-Re AMXX Dev Team restmenu.amxx running
[ 30] Anti Flood 1.8.3-Re AMXX Dev Team antiflood.amxx running
[ 31] nice Demo 1.0 sector nice_demo.amxx running
[ 32] Advanced Re WarmUp 1.0.3 Vaqtincha re_warmup.amxx running
[ 33] Warmup Misc 0.0.4 Vaqtincha warmup_misc.amx running
[ 34] Ping Control 1.31f neygomon(+wopox Ping_Control.am running
[ 35] [ReAPI] Unlimited Choo 0.0.6 Vaqtincha reapi_test_unli running
[ 36] Advert Messages 1.3.3 neygomon | Radiu advert_messages running
[ 37] [ReApi] Killer ScreenF 0.0.4 Vaqtincha reapi_killer_sc running
[ 38] AFK Manager v1.6 Leon McVeran afk_manager.amx running
[ 39] Bomb Plant Money Bonus 1.0 Nixon plant_bonus.amx running
[ 40] Fall Damage HP Restore 0.0.1 Vaqtincha FallDamageHpRes running
[ 41] NO_FITH_TEXT 1.0 perf No_fith_text.am running
[ 42] Lite C4 Timer 1.0.0 neygomon lite_c4timer.am running
[ 43] Steam Bonus 1.0 ill steam_bonus_a2. running
[ 44] Die Motion Rate 0.0.2 Vaqtincha reapi_die_motio running
[ 45] Fake Ping 1.0 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 46] Offline Bans 1.0.1 F@nt0M offline_bans.am running
[ 47] Resetscore 1.0 ill+Radius_fix resetscore.amxx running
[ 48] C4 Taker 1.09 hellmonja & Haml c4_taker.amxx running
[ 49] Rock to Ban 1.46f Safety1st rock2ban.amxx running
[ 50] Chat Manager 1.0.0 Mistrick chatmanager.amx running
[ 51] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running
[ 52] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
[ 53] AES: Informer 0.5 Vega serfreeman1337 aes_informer.am running
[ 54] AES: Admin Tools 0.5 Vega serfreeman1337 aes_exp_editor. running
[ 55] AES: Bonus System 0.5 Vega serfreeman1337 aes_bonus_syste running
[ 56] AES: Bonus CSTRIKE 0.5 Vega serfreeman1337 aes_bonus_cstri running
56 plugins, 56 running
Список метамодулей:
Код:
[ 1] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i v0.1.7 ini Start Never
[ 3] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-R ini Start ANY
[ 5] Revoice RUN - revoice_mm_i386. v0.1.26 ini Start Never
[ 6] WHBlocker RUN - whblocker_mm_i38 v1.5.684 ini Chlvl ANY
[ 7] ReSRDetector RUN - resrdetector_mm_ v0.1.0 ini Chlvl ANY
[ 8] ReAimDetector RUN - reaimdetector_am v0.1.5 pl4 ANY Never
[ 9] MySQL RUN - mysql_amxx_i386. v1.8.3-R pl4 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-R pl4 ANY ANY
[11] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-R pl4 ANY ANY
[12] CStrike RUN - cstrike_amxx_i38 v1.8.3-R pl4 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386. v5.1.0.1 pl4 ANY Never
[14] Fun RUN - fun_amxx_i386.so v1.8.3-R pl4 ANY ANY
[15] Engine RUN - engine_amxx_i386 v1.8.3-R pl4 ANY ANY
15 plugins, 15 running
Исходник:
Код:
/*
Advanced Experience System
by serfreeman1337 http://gf.hldm.org/
*/
/*
Random CSTRIKE Bonuses
*/
#include <amxmodx>
#if AMXX_VERSION_NUM < 183
#include <colorchat>
#define print_team_default DontChange
#define print_team_grey Grey
#define print_team_red Red
#define print_team_blue Blue
#define MAX_NAME_LENGTH 32
#define MAX_PLAYERS 32
#define client_disconnected client_disconnect
#endif
#include <aes_v>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#define PLUGIN "AES: Bonus CSTRIKE"
#define VERSION "0.5 Vega"
#define AUTHOR "serfreeman1337"
// биты? да это же круто!
enum _:
{
SUPER_NICHEGO,
SUPER_NADE,
SUPER_DEAGLE
}
new g_players[MAX_PLAYERS + 1],g_maxplayers
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed,"player","On_Player_Killed")
RegisterHam(Ham_TakeDamage,"player","On_Player_TakeDamage")
}
public client_disconnected(id)
{
g_players[id] = SUPER_NICHEGO // сбрасываем возможности на дисконнекте
}
public On_Player_Killed(id)
g_players[id] = SUPER_NICHEGO // сбрасываем возможности при смерти
public On_Player_TakeDamage(victim,idinflictor,idattacker,Float:damage,damagebits){
if(!idattacker || idattacker > g_maxplayers)
return HAM_IGNORED
if(!g_players[idattacker])
return HAM_IGNORED
if(0 < idinflictor <= g_maxplayers){
new wp = get_user_weapon(idattacker)
if(wp == CSW_DEAGLE && (g_players[idattacker] & (1 << SUPER_DEAGLE)))
{
SetHamParamFloat(4,damage * 2.0)
}
else
{
new classname[32]
pev(idinflictor,pev_classname,classname,31)
if(!strcmp(classname,"grenade") && (g_players[idattacker] & (1 << SUPER_NADE))){
set_task(0.5,"deSetNade",idattacker)
SetHamParamFloat(4,damage * 3.0)
}
}
}
return HAM_IGNORED
}
// сбарсываем множитель урона гранаты
public deSetNade(id)
g_players[id] &= ~(1<<SUPER_NADE)
public roundBonus_GiveDefuser(id,cnt){
if(!cnt)
return false
if(cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_defuse(id)
}
return true
}
public roundBonus_GiveNV(id,cnt){
if(!cnt)
{
return false
}
cs_set_user_nvg(id)
return true
}
public roundBonus_GiveArmor(id,cnt){
if(!cnt)
{
return false
}
switch(cnt)
{
case 1:
{
cs_set_user_armor(id,100,CS_ARMOR_KEVLAR)
}
case 2:
{
cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
}
default:
{
cs_set_user_armor(id,cnt,CS_ARMOR_VESTHELM)
}
}
return true
}
public roundBonus_GiveHP(id,cnt){
if(!cnt)
return false
set_user_health(id,(get_user_health(id) + cnt))
return true
}
#define CHECK_ALIVE(%1) \
if(!is_user_alive(%1)){\
client_print_color(id,0,"%L %L",id,"AES_TAG",id,"AES_ANEW_ALIVE"); \
return 0; \
}
public pointBonus_GiveM4a1(id)
{
CHECK_ALIVE(id)
DropWeaponSlot(id,1)
give_item(id,"weapon_m4a1")
cs_set_user_bpammo(id,CSW_M4A1,90)
return true
}
public pointBonus_GiveAk47(id)
{
CHECK_ALIVE(id)
DropWeaponSlot(id,1)
give_item(id,"weapon_ak47")
cs_set_user_bpammo(id,CSW_AK47,90)
return true
}
public pointBonus_GiveAWP(id)
{
CHECK_ALIVE(id)
DropWeaponSlot(id,1)
give_item(id,"weapon_awp")
cs_set_user_bpammo(id,CSW_AWP,30)
return true
}
public pointBonus_Give10000M(id)
{
CHECK_ALIVE(id)
new money = cs_get_user_money(id) + 10000
money = clamp(money,0,16000)
cs_set_user_money(id,money)
return true
}
public pointBonus_Set200HP(id)
{
CHECK_ALIVE(id)
set_user_health(id,200)
return true
}
public pointBonus_GiveMegaGrenade(id)
{
CHECK_ALIVE(id)
if(!user_has_weapon(id,CSW_HEGRENADE))
{
give_item(id,"weapon_hegrenade")
}
g_players[id] |= (1<<SUPER_NADE)
client_print_color(id,0,"%L %L",id,"AES_TAG",id,"AES_BONUS_GET_MEGAGRENADE")
return true
}
public pointBonus_GiveMegaDeagle(id){
CHECK_ALIVE(id)
DropWeaponSlot(id,2)
give_item(id,"weapon_deagle")
cs_set_user_bpammo(id,CSW_DEAGLE,35) // какой максимум?
g_players[id] |= (1<<SUPER_DEAGLE)
client_print_color(id,0,"%L %L",id,"AES_TAG",id,"AES_BONUS_GET_MEGADEAGLE")
return true
}
DropWeaponSlot( iPlayer, iSlot ){
static const m_rpgPlayerItems = 367; // player
static const m_pNext = 42; // weapon_*
static const m_iId = 43; // weapon_*
if( !( 1 <= iSlot <= 2 ) ) {
return 0;
}
new iCount;
new iEntity = get_pdata_cbase( iPlayer, ( m_rpgPlayerItems + iSlot ), 5 );
if( iEntity > 0 ) {
new iNext;
new szWeaponName[ 32 ];
do {
iNext = get_pdata_cbase( iEntity, m_pNext, 4 );
if( get_weaponname( get_pdata_int( iEntity, m_iId, 4 ), szWeaponName, charsmax( szWeaponName ) ) ) {
engclient_cmd( iPlayer, "drop", szWeaponName );
iCount++;
}
} while( ( iEntity = iNext ) > 0 );
}
return iCount;
}
Комментарий:
в bonus.ini есть настройка бонусов:
- <call>
- plugin = aes_bonus_cstrike.amxx
- name = LANG_AES_BONUS_M4A1
- function = pointBonus_GiveM4a1
- points = 1
- round = 2
если поставить round = 2, то со 2 раунда, как написано в инструкции, взять не получается, менюшка не активна, и в 5, 10 раунде так же остается неактивной.
Дальше есть ещё проблема с диглом и гранатой в бонусах
МегаГраната(+300%) не наносит столько урона, наносит как обычная.
МегаДигл(+200%) не наносит столько урона, наносит как обычный.
Вложения
-
4.7 KB Просмотры: 600