Пользователь
- Сообщения
- 17
- Реакции
- -2
- Ошибка
-
05/19/2018 - 11:14:36: [AMXX] Displaying debug trace (plugin "INFO_RANK_V0.1.amxx")
L 05/19/2018 - 11:14:36: [AMXX] Run time error 4: index out of bounds
L 05/19/2018 - 11:14:36: [AMXX] [0] ColorChat.inc::ColorChat (line 74)
L 05/19/2018 - 11:14:36: [AMXX] [1] af432b62c7dd5aecd053e16e6a435aa9.sma::event_player_spawn (line 83)
L 05/19/2018 - 11:14:36: [AMXX] [2] af432b62c7dd5aecd053e16e6a435aa9.sma::eResetHUD (line 62)
- ОС
- Linux
- Билд
-
version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
- ReGamedll
-
-
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 2] dproto_EF RUN - dproto_i386.so v0.9.391 ini Start Never
[ 3] Semiclip RUN - semiclip_mm_i386 v2.2 ini ANY ANY
[ 4] WHBlocker RUN - whblocker_mm_i38 v1.5.692 ini Chlvl ANY
[ 5] LocalizeBug Fix RUN - localizebugfix_m v2.4 ini Start Never
[ 6] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 7] ProcessCmds RUN - processcmds_mm_i v1.1.4 ini Start Never
[ 8] Engine RUN - engine_amxx_i386 v1.8.2 pl1 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl1 ANY ANY
[10] okapi RUN - okapi_amxx_i386. v1.0 pl1 ANY ANY
[11] Orpheu RUN - orpheu_amxx_i386 v2.6.3 pl1 ANY ANY
[12] MySQL RUN - mysql_amxx_i386. v1.8.2 pl1 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl1 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.8.2 pl1 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.8.2 pl1 ANY ANY
16 plugins, 16 running
- Список плагинов
-
[ 1] opengl detector 0.8.30ob kanagava opengl32.amxx running
[ 2] AMXBans: Core MA 1.6.9 Larte Team amxbans_core.am running
[ 3] AMXBans: Main MA 1.6.9 Larte Team amxbans_main.am running
[ 4] AIM detector 0.9.4.1b kanagava aim_detector.am running
[ 5] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 6] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 7] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running
[ 8] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 9] Map Manager 2.5.54 Mistrick mapmanager.amxx running
[ 10] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp running
[ 11] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 12] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 13] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 14] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 15] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 16] Players Menu 1.8.M AMXX Dev Team plmenu.amxx running
[ 17] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 18] StatsX (MastaMan Editi 1.8.1.3746 AMXX Dev Team & statsx_shell.am running
[ 19] CS Stats Logging 1.8.2 AMXX Dev Team stats_logging.a running
[ 20] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 21] Teleport Menu 1.8.2 AMXX Dev Team telemenu.amxx running
[ 22] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[ 23] AES: Exp CSTRIKE 0.3 serfreeman1337 aes_exp_cstrike running
[ 24] AES: Experience Editor 0.1 serfreeman1337 aes_exp_editor. running
[ 25] AES: Informer 0.2 serfreeman1337 aes_informer.am running
[ 26] Advanced Experience Sy 0.4 serfreeman1337 aes_main.amxx running
[ 27] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx running
[ 28] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx running
[ 29] V.I.P Custom KNIFE 1.0.0 Vaqtincha custom_knife.am running
[ 30] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a running
[ 31] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx running
[ 32] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx running
[ 33] Killa HP 1.6 jas0n killa_hp.amxx running
[ 34] ComboSprites 0.5 Chrescoe1 combo_sprtes.am running
[ 35] Kill Assist 1.0 Dom1no_[KZ] kill_assist.amx running
[ 36] Best Player 0.2b Subb98 best_player.amx running
[ 37] Parachute 1.0 maeStro parachute.amxx running
[ 38] Automatic knife duel 0.3 JGHG automatic_knife running
[ 39] COLORS MENU 1.2 DUKKHAZ0R color.amxx running
[ 40] Knife WarnUP 1.0 ill knife_warm-up.a running
[ 41] AFK Manager v1.4d Leon McVeran afk_manager.amx running
[ 42] Ultimate Sounds 1.7 Dizzy / Bmann_42 f_ultimate_soun running
[ 43] No Players Map 0.1 X-factor noplayers_map.a running
[ 44] Block HudTextArgs 1.0 ConnorMcLeod hudTextArgsBloc running
[ 45] Reload Status Bar 0.1.1 VEN reload_status.a running
[ 46] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 47] IP 2.1 Bl0ck IP.amxx running
[ 48] Pro Chat (no viewer) 1.8 Numb prochat.amxx running
[ 49] Nade Messages 1.0 v3x nademessages.am running
[ 50] mute menu 1.0 cheap_suit mutemenu.amxx running
[ 51] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 52] custom.hpk Control 2.0 Northon customhpk_contr running
[ 53] Reset_Score 1.0 Silenttt Fixed b Resetscore.amxx running
[ 54] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 55] MiniRadio by SLIMSHADY 1.0 slimshady miniradio_by_sl running
[ 56] Instant AutoTeamBalanc 1.2.0 ConnorMcLeod instant_autotea running
[ 57] AWPoff 3.0 PAffAEJIkA :3 awp.amxx running
[ 58] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 59] Rock to Ban 1.01 Safety1st rock2ban.amxx running
[ 60] Player Model 2.13c commonbullet playermodel.amx running
[ 61] Lite Translit 2.8 neygomon lite_translit.a running
[ 62] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 63] Grenade Mode 0.6 gyxoBka grenade_mode.am running
[ 64] Effects plug-in 1.0 OverGame effects.amxx running
[ 65] Weapon Model + Sound R 1.2 GHW_Chronic GHW_Weapon_Repl running
[ 66] say /vk by gena 0.1 GeNa say_vk.amxx running
[ 67] Info Rank 0.1 by CepeH9 INFO_RANK_V0.1. debug
[ 68] FullSpawns 1.0 Eg@r4$il{ FullSpawns.amxx running
[ 69] AMXBans: Screens Gm 1.6 Larte Team amxbans_ssban.a running
69 plugins, 69 running
- Исходный код
-
#include <amxmodx>
#include <csx>
#include <ColorChat>
#define MAX_PLAYERS 32
new bool:g_RestartAttempt[MAX_PLAYERS+1]
new g_oldrank[MAX_PLAYERS+1]
#if defined DISABLED_BY_DEFAULT
new bool:disabled[MAX_PLAYERS+1] = {true, ...}
#else
new bool:disabled[MAX_PLAYERS+1]
#endif
new inforank
public plugin_init() {
register_plugin("Info Rank", "0.1", "by CepeH9")
register_dictionary("inforank.txt")
inforank = register_cvar("amx_inforank", "1")
register_event("TextMsg", "eRestartAttempt", "a", "2=#Game_will_restart_in")
register_event("ResetHUD", "eResetHUD", "be")
register_clcmd("say /inforank","switchCmd", 0, "- enable/disable info rank messages")
register_clcmd("say_team /inforank","switchCmd", 0, "- enable/disable info rank messages")
register_clcmd("fullupdate", "fullupdateCmd")
}
public fullupdateCmd() {
return PLUGIN_HANDLED_MAIN
}
public eRestartAttempt() {
if(!get_pcvar_num(inforank))
return
new players[MAX_PLAYERS], num
get_players(players, num, "a")
for (new i; i < num; ++i)
g_RestartAttempt[players[i]] = true
}
public eResetHUD(id) {
if (g_RestartAttempt[id]) {
g_RestartAttempt[id] = false
return
}
if(!get_pcvar_num(inforank))
return
if(disabled[id])
return
event_player_spawn(id)
}
public event_player_spawn(id) {
new osef[8]
new rank = get_user_stats(id, osef, osef)
new maxrank = get_statsnum()
if(g_oldrank[id] == 0)
g_oldrank[id] = rank
new diff = g_oldrank[id] - rank
g_oldrank[id] = rank
if(diff > 0) {
ColorChat(id, GREEN, "^3Ты поднялся на ^4%i ^3место(а)...", diff)
}
else if(diff < 0) {
ColorChat(id, RED, "^3Ты опустился на ^4%i ^3место(а)...", abs(diff))
}
ColorChat(id, GREY, "^1Ты занимаешь ^4%i-е ^1место из ^4%i", rank, maxrank)
}
public switchCmd(id) {
if(!get_pcvar_num(inforank))
return PLUGIN_CONTINUE
if(disabled[id]) {
disabled[id] = false
client_cmd(id, "setinfo _ir 1")
ColorChat(id, GREEN, "^4Сообщения включены")
}
else {
disabled[id] = true
client_cmd(id, "setinfo _ir 0")
ColorChat(id, GREEN, "^4Сообщения выключены")
}
return PLUGIN_CONTINUE
}
public client_authorized(id) {
new osef[8]
g_oldrank[id] = get_user_stats(id, osef, osef)
new enable[2]
get_user_info(id, "_ir", enable, 1)
if(!enable[0])
return
if(enable[0]=='1')
disabled[id] = false
else
disabled[id] = true
}
public client_disconnect(id) {
g_oldrank[id] = 0
#if defined DISABLED_BY_DEFAULT
disabled[id] = true
#else
disabled[id] = false
#endif
}
как то так