Участник
Пользователь
- Сообщения
- 16
- Реакции
- 8
Основная информация
Проблема: После смены плагин не работает
Ошибка:
Amx Mod X: ReAMXX
Билд:
ReGamedll:
Список модулей:
Список плагинов:
Список метамодулей:
Исходник:
Комментарий:
После смены карты он перестаёт работать, приходится перезаходить чтобы заработал
Проблема: После смены плагин не работает
Ошибка:
Дополнительная информация
Amx Mod X: ReAMXX
Билд:
Код:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.0.0.396-dev
Build date: 14:37:05 Jan 13 2017 (1007)
Build from: https://github.com/dreamstalker/rehlds/commit/3b4db34
ReGamedll:
Код:
ReGameDLL version: 5.0.0.169-dev
Build date: 14:07:12 Jan 14 2017
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/faff55d
Список модулей:
Код:
Currently loaded modules:
name version author status
[ 1] MySQL 1.8.3-Re AMX Mod X Dev Team running
[ 2] SQLite 1.8.3-Re AMX Mod X Dev Team running
[ 3] Orpheu 2.6.3 joaquimandrade & Ar running
[ 4] Fun 1.8.3-Re AMX Mod X Dev Team running
[ 5] Engine 1.8.3-Re AMX Mod X Dev Team running
[ 6] FakeMeta 1.8.3-Re AMX Mod X Dev Team running
[ 7] GeoIP 1.8.3-Re AMX Mod X Dev Team running
[ 8] nVault 1.8.3-Re AMX Mod X Dev Team running
[ 9] CStrike 1.8.3-Re AMX Mod X Dev Team running
[10] CSX 1.8.3-Re AMX Mod X Dev Team running
[11] Ham Sandwich 1.8.3-Re AMX Mod X Dev Team running
[12] ReAimDetector 0.1.3 ReHLDS Team running
[13] ReAPI 5.1.0.97-d Asmodai & s1lent running
[14] Sockets 1.8.3-Re HLSW Dev Team running
[15] RegEx 1.8.3-Re AMX Mod X Dev Team running
15 modules, 15 correct
Список плагинов:
Код:
Currently loaded plugins:
name version author file status
[ 1] DopBan 2.9.9b kanagava dop_ban.amxx running
[ 2] FreshBans 1.3.4 kanagava fresh_bans_134. running
[ 3] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 4] Admin Load 3.9.1 F@nt0M adminload_3_9_1 running
[ 5] WebHS 0.1 kanagava fb_web_online.a running
[ 6] Admin Commands 1.8.3-dev+ AMXX Dev Team admincmd.amxx running
[ 7] Menus Front-End 1.8.3-dev+ AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.8.3-dev+ AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.8.3-dev+ AMXX Dev Team plmenu.amxx running
[ 10] Maps Menu 1.8.3-dev+ AMXX Dev Team mapsmenu.amxx running
[ 11] Plugin Menu 1.8.3-dev+ AMXX Dev Team pluginmenu.amxx running
[ 12] Admin Chat 1.8.3-dev+ AMXX Dev Team adminchat.amxx running
[ 13] Admin Votes 1.8.3-dev+ AMXX Dev Team adminvote.amxx running
[ 14] Stats Configuration 1.8.3-dev+ AMXX Dev Team statscfg.amxx running
[ 15] Restrict Weapons 1.8.3-dev+ AMXX Dev Team restmenu.amxx running
[ 16] [Y18] ESP 1.1 QooQa esp_one.amxx running
[ 17] [ReAPI] IDEAL VIP by W 1.4.6 Wikiname (Remake reapi_ideal_vip running
[ 18] gameME Plugin 2.4[v4.5.4 TTS Oetzel & Goe gameme_cstrike. running
[ 19] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 20] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 21] Advanced MapChooser 1.1.0 neygomon map_chooser.amx running
[ 22] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 23] Yet Another Voteban 1.6 beta AndrewZ/voed yet_another_vot running
[ 24] Time for info 1.0 neugomon time_for_info.a running
[ 25] Advanced Gag 1.4 neygomon amx_gag.amxx running
[ 26] Reset Score 1.0 AndrewZ resetscore.amxx running
[ 27] Advanced Re WarmUp 1.0.2 Vaqtincha re_warmup.amxx running
[ 28] Warmup Misc 0.0.4 Vaqtincha re_warmup_misc. running
[ 29] [ReAPI] Flasher Punish 0.0.2b Vaqtincha reapi_flasher_p running
[ 30] Steam Bonus 2.0b neygomon and Aci steam_bm.amxx running
[ 31] Advert Messages 1.2 neygomon advert_messages running
[ 32] Auto Demo Recorder 2.2 F@nt0M demo_recorder.a running
[ 33] C4 Timer on roundtime 0.3.3a neygomon c4_timer_on_rou running
[ 34] Ping Control 1.31 neygomon ping_control.am running
[ 35] Motd 1 TheNega motd_help.amxx running
[ 36] AWP limitter 1.03 neygomon awp_limitter.am running
[ 37] Stop the Bastards 1.6.6 F@nt0M stop_the_bastar running
[ 38] [ReAPI] Lite TeamBalan 2.3 neugomon lite_balancer_2 running
[ 39] NO_FITH_TEXT 1.0 perf No_fith_text.am running
[ 40] WinTeam Sprite 0.0.5 Some Scripter WinTeam_Sprite. running
[ 41] Replace Info Message 2.1 maeStro aka 9iky replace_info_ms running
41 plugins, 41 running
Список метамодулей:
Код:
[ 1] AMX Mod X RUN - amxmodx.so v1.8.3-R ini Start ANY
[ 2] Reunion RUN - reunion.so v0.1.75 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck.so v0.1.5 ini Start Never
[ 4] Rechecker RUN - rechecker.so v2.3 ini ANY
[ 5] Revoice RUN - revoice.so v0.1.26 ini Start Never
[ 6] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 7] MySQL RUN - mysql_amxx_i386. v1.8.3-R pl1 ANY
[ 8] SQLite RUN - sqlite_amxx_i386 v1.8.3-R pl1 ANY
[ 9] Orpheu RUN - orpheu_amxx_i386 v2.6.3 pl1 ANY
[10] Fun RUN - fun_amxx_i386.so v1.8.3-R pl1 ANY
[11] Engine RUN - engine_amxx_i386 v1.8.3-R pl1 ANY
[12] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-R pl1 ANY
[13] GeoIP RUN - geoip_amxx_i386. v1.8.3-R pl1 ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.8.3-R pl1 ANY
[15] CSX RUN - csx_amxx_i386.so v1.8.3-R pl1 ANY
[16] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-R pl1 ANY
[17] ReAimDetector RUN - reaimdetector_am v0.1.3 pl1 ANY Never
[18] ReAPI RUN - reapi_amxx_i386. v5.1.0.9 pl1 ANY Never
18 plugins, 18 running
Исходник:
Код:
#include <amxmodx>
#include <engine>
// Original by KoST
#define HUD_CHANNEL 2
#define UPDATETIME 0.3
#define TASK_ESP 99999
new const g_sTeamColors[][] = { { 0, 0, 0 }, { 150, 0, 0 }, { 0, 0, 150 }, { 0, 150, 0 } }
new const g_sEspColors[][] = { { 0, 255, 0 }, { 100, 60, 60 }, { 60, 60, 100 } }
new const g_sPrefixes[][] = { "", "(Админ)", "(Вип)" }
new const g_sModeNames[][] = { "Квадраты", "Линии", "Квадраты и Линии" }
new bool:g_bClient[33], bool:g_bAdmin[33], bool:g_bFirstPerson[33], bool:g_bDucking[33]
new g_iMode[33], g_iLastTarget[33], g_iPrefix[33]
new g_sAuthid[33][44], g_sIp[33][32], g_sName[33][32]
new Float:g_fGameTime[33]
new g_iMaxPlayers
new g_iMsgSync
new g_iSprLaser
public plugin_init ()
{
register_plugin ( "[Y18] ESP", "1.1", "QooQa" )
register_event ( "TextMsg", "ev_TextMsg","b","2&#Spec_Mode" )
register_event ( "ResetHUD", "ev_ResetHud", "be" )
g_iMsgSync = CreateHudSyncObj ()
g_iMaxPlayers = get_maxplayers ()
}
public plugin_precache ()
{
g_iSprLaser = precache_model ( "sprites/laserbeam.spr" )
}
public ev_ResetHud ( id )
{
g_iLastTarget[id] = 0
return PLUGIN_CONTINUE
}
public ev_TextMsg ( id )
{
if ( !g_bAdmin[id] )
return PLUGIN_CONTINUE
new sSpecMode[12]
read_data ( 2, sSpecMode, 11 )
remove_task ( id+TASK_ESP )
if ( ( g_bFirstPerson[id] = bool:( equal ( sSpecMode, "#Spec_Mode4" ) ) ) )
set_task ( UPDATETIME, "TaskEsp", id+TASK_ESP, .flags="b" )
return PLUGIN_CONTINUE
}
public client_infochanged ( id )
{
get_user_info ( id, "name", g_sName[id], charsmax ( g_sName ) )
}
public client_putinserver ( id )
{
if ( is_user_bot ( id ) || is_user_hltv ( id ) )
return
g_bClient[id] = bool:( is_user_steam ( id ) )
get_user_name ( id, g_sName[id], charsmax ( g_sName ) )
get_user_ip ( id, g_sIp[id], charsmax ( g_sIp ), 1 )
get_user_steam ( id )
g_iLastTarget[id] = 0
g_fGameTime[id] = 0.0
g_bFirstPerson[id] = false
new bitFlags = get_user_flags ( id )
g_iPrefix[id] = bitFlags & ADMIN_KICK ? 1 : bitFlags & ADMIN_LEVEL_H ? 2 : 0
if ( bitFlags & ADMIN_KICK )
{
g_bAdmin[id] = true
g_iMode[id] = 3
LoadVaultData ( id )
}
else
g_bAdmin[id] = false
}
public SaveVaultData ( id )
{
if ( g_bAdmin[id] )
{
new sAuthid[35]
get_user_authid ( id, sAuthid, charsmax ( sAuthid ) )
new sTmp[2], sNum[2]
num_to_str ( g_iMode[id], sNum, charsmax ( sNum ) )
sTmp[0] = sNum[0]
new sKey[41]
format ( sKey, charsmax ( sKey ),"AESP_%s", sAuthid )
set_vaultdata ( sKey, sTmp )
}
}
public LoadVaultData ( id )
{
if ( g_bAdmin[id] )
{
new sData[2]
new sAuthid[35]
get_user_authid ( id, sAuthid, charsmax ( sAuthid ) )
new sKey[41]
format ( sKey, charsmax ( sKey ),"AESP_%s", sAuthid )
get_vaultdata ( sKey, sData, charsmax ( sData ) )
if ( strlen ( sData ) > 0 )
g_iMode[id] = str_to_num ( sData[0] )
}
}
public client_disconnected ( id )
{
remove_task ( id+TASK_ESP )
if ( is_user_bot ( id ) || is_user_hltv ( id ) )
return
SaveVaultData ( id )
g_bAdmin[id] = false
g_bClient[id] = false
g_iLastTarget[id] = 0
g_fGameTime[id] = 0.0
}
public client_PreThink ( id )
{
if ( !is_user_connected ( id ) ) return PLUGIN_CONTINUE
new iButton = get_user_button ( id )
if ( iButton == 0 ) return PLUGIN_CONTINUE
g_bDucking[id] = bool:( iButton & IN_DUCK )
if ( is_user_alive ( id ) || !g_bAdmin[id] || !g_bFirstPerson[id] )
return PLUGIN_CONTINUE
if ( ( iButton & IN_RELOAD ) && !( get_user_oldbutton ( id ) & IN_RELOAD ) )
{
g_iMode[id] = ( g_iMode[id] < 3 ) ? g_iMode[id] + 1 : 1
client_print ( id, print_chat, "[ESP] Режим: %s", g_sModeNames[g_iMode[id]-1] )
}
return PLUGIN_CONTINUE
}
public TaskEsp ( id )
{
id -= TASK_ESP
if ( !is_user_connected ( id ) || !g_bAdmin[id] || is_user_alive ( id ) || !g_bFirstPerson[id] )
{
remove_task ( id+TASK_ESP )
return
}
static iSpecId
iSpecId = entity_get_int ( id, EV_INT_iuser2 )
if ( !is_user_connected ( iSpecId ) || !is_user_alive ( iSpecId ) || is_user_bot ( iSpecId ) )
return
if ( g_iLastTarget[id] != iSpecId )
{
g_fGameTime[id] = 0.0
ClearSyncHud ( id, g_iMsgSync )
}
static Float:fGameTime; fGameTime = get_gametime ()
if ( fGameTime >= g_fGameTime[id] + 0.8 )
{
static sHud[256]
format
(
sHud,
charsmax ( sHud ),
"Ник: %s %s^nКлиент: %s^n%s | IP: %s^n",
g_sName[iSpecId],
g_sPrefixes[g_iPrefix[iSpecId]],
g_bClient[iSpecId] ? "STEAM" : "NON STEAM",
g_sAuthid[iSpecId],
g_sIp[iSpecId]
)
set_hudmessage ( 255, 255, 255, -1.0, 0.68, 0, 0.0, 1.0, 0.0, 0.0, HUD_CHANNEL )
ShowSyncHudMsg ( id, g_iMsgSync, sHud )
g_fGameTime[id] = fGameTime
}
g_iLastTarget[id] = iSpecId
new Float:fOrigin[3]
entity_get_vector ( id, EV_VEC_origin, fOrigin )
new iTeam = get_user_team ( iSpecId )
for ( new s = 1; s <= g_iMaxPlayers; s++ )
{
if ( is_user_connected ( s ) && is_user_alive ( s ) && iSpecId != s )
{
new iTargetTeam = get_user_team ( s )
if ( !( iTargetTeam == 3 ) )
{
if ( ( iTeam != iTargetTeam && ( iTargetTeam == 1 || iTargetTeam == 2 ) ) )
{
new Float:fTargetOrigin[3]
entity_get_vector ( s, EV_VEC_origin, fTargetOrigin )
new Float:fDistance = vector_distance ( fOrigin, fTargetOrigin )
if ( g_iMode[id] == 2 || g_iMode[id] == 3 )
{
new width
if ( fDistance < 2040.0 )
width = ( 255-floatround ( fDistance/8.0 ) )/3
else
width = 1
make_TE_BEAMENTPOINT ( id, fTargetOrigin, width, iTargetTeam )
}
new Float:v_middle[3]
vector_sub ( fTargetOrigin, fOrigin, v_middle )
new Float:v_hitpoint[3]
trace_line ( -1, fOrigin, fTargetOrigin, v_hitpoint )
new Float:fDistanceToHitpoint = vector_distance ( fOrigin, v_hitpoint )
new Float:scaled_bone_len
if ( g_bDucking[iSpecId] )
scaled_bone_len = fDistanceToHitpoint/fDistance*(50.0-18.0)
else
scaled_bone_len = fDistanceToHitpoint/fDistance*50.0
scaled_bone_len = fDistanceToHitpoint/fDistance*50.0
new Float:scaled_bone_width = fDistanceToHitpoint/fDistance*150.0
new Float:v_bone_start[3],Float:v_bone_end[3]
new Float:offset_vector[3]
normalize ( v_middle, offset_vector, fDistanceToHitpoint-10.0 )
new Float:eye_level[3]
vector_copy ( fOrigin, eye_level )
if ( g_bDucking[iSpecId] )
eye_level[2] += 12.3
else
eye_level[2] += 17.5
vector_add ( offset_vector, eye_level )
vector_copy ( offset_vector, v_bone_start )
vector_copy ( offset_vector, v_bone_end )
v_bone_end[2] -= scaled_bone_len
new Float:fDistanceTargetHitpoint = fDistance-fDistanceToHitpoint
new actual_bright = 255
if ( g_iMode[id] == 1 || g_iMode[id] == 3 )
{
if ( fDistanceTargetHitpoint < 2040.0 )
actual_bright = ( 255-floatround ( fDistanceTargetHitpoint/12.0 ) )
else
actual_bright = 85
new iColor
if ( fDistanceToHitpoint != fDistance )
iColor = 0
else
iColor = iTargetTeam
make_TE_BEAMPOINTS ( id, iColor, v_bone_start, v_bone_end, floatround ( scaled_bone_width ), iTargetTeam, actual_bright )
}
}
}
}
}
}
stock Float:scalar_triple_product ( Float:a[3], Float:b[3] )
{
new Float:up[3] = { 0.0, 0.0, 1.0 }
new Float:Ret[3]
Ret[0] = a[1] * b[2] - a[2] * b[1]
Ret[1] = a[2] * b[0] - a[0] * b[2]
Ret[2] = a[0] * b[1] - a[1] * b[0]
return vector_product ( Ret, up )
}
stock normalize ( Float:Vec[3], Float:Ret[3], Float:multiplier )
{
new Float:len = vector_distance ( Vec, Float:{0.0, 0.0, 0.0} )
vector_copy ( Vec, Ret )
Ret[0] /= len
Ret[1] /= len
Ret[2] /= len
Ret[0] *= multiplier
Ret[1] *= multiplier
Ret[2] *= multiplier
}
stock Float:vector_product ( Float:Vec1[3], Float:Vec2[3] )
{
return Vec1[0] * Vec2[0] + Vec1[1] * Vec2[1] + Vec1[2] * Vec2[2]
}
stock vector_copy ( Float:Vec[3], Float:Ret[3] )
{
Ret[0] = Vec[0]
Ret[1] = Vec[1]
Ret[2] = Vec[2]
}
stock vector_sub ( Float:Vec1[3], Float:Vec2[3], Float:Ret[3] )
{
Ret[0] = Vec1[0] - Vec2[0]
Ret[1] = Vec1[1] - Vec2[1]
Ret[2] = Vec1[2] - Vec2[2]
}
stock vector_add ( Float:Vec1[3], Float:Vec2[3] )
{
Vec1[0] += Vec2[0]
Vec1[1] += Vec2[1]
Vec1[2] += Vec2[2]
}
public make_TE_BEAMPOINTS ( id, color, Float:Vec1[3], Float:Vec2[3], width, target_team, brightness )
{
message_begin ( MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, {0,0,0}, id )
write_byte ( 0 )
write_coord ( floatround ( Vec1[0] ) )
write_coord ( floatround ( Vec1[1] ) )
write_coord ( floatround ( Vec1[2] ) )
write_coord ( floatround ( Vec2[0] ) )
write_coord ( floatround ( Vec2[1] ) )
write_coord ( floatround ( Vec2[2] ) )
write_short ( g_iSprLaser )
write_byte ( 3 )
write_byte ( 0 )
write_byte ( floatround ( UPDATETIME*10 ) )
write_byte ( width )
write_byte ( 0 )
write_byte ( g_sEspColors[color][0] )
write_byte ( g_sEspColors[color][1] )
write_byte ( g_sEspColors[color][2] )
write_byte ( brightness )
write_byte ( 0 )
message_end ()
}
public make_TE_BEAMENTPOINT ( id, Float:target_origin[3], width, target_team )
{
message_begin ( MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, {0,0,0}, id )
write_byte ( 1 )
write_short ( id )
write_coord ( floatround ( target_origin[0] ) )
write_coord ( floatround ( target_origin[1] ) )
write_coord ( floatround ( target_origin[2] ) )
write_short ( g_iSprLaser )
write_byte ( 1 )
write_byte ( 1 )
write_byte ( floatround ( UPDATETIME*10 ) )
write_byte ( width )
write_byte ( 0 )
write_byte ( g_sTeamColors[target_team][0] )
write_byte ( g_sTeamColors[target_team][1] )
write_byte ( g_sTeamColors[target_team][2] )
write_byte ( 255 )
write_byte ( 0 )
message_end ()
}
stock bool:is_user_steam ( id )
{
static dp_pointer
if ( dp_pointer || ( dp_pointer = get_cvar_pointer ( "dp_r_id_provider" ) ) )
{
server_cmd ( "dp_clientinfo %d", id )
server_exec ()
return ( get_pcvar_num ( dp_pointer ) == 2 ) ? true : false
}
return false
}
stock get_user_steam ( id )
{
if ( !is_user_connected ( id ) || is_user_bot ( id ) )
return 0
get_user_authid ( id, g_sAuthid[id], charsmax ( g_sAuthid ) )
static const sInvalidSteamID[][] =
{
"STEAM_ID_LAN",
"STEAM_ID_PENDING",
"VALVE_ID_LAN",
"VALVE_ID_PENDING"
}
for ( new i = 0; i < sizeof sInvalidSteamID; i++ )
{
if ( equali ( g_sAuthid[id], sInvalidSteamID ) )
{
g_sAuthid[id] = "Нет"
return 1
}
}
return 1
}
Комментарий:
После смены карты он перестаёт работать, приходится перезаходить чтобы заработал
В этой теме было размещено решение! Перейти к решению.
Вложения
-
10.3 KB Просмотры: 628