Участник
Пользователь
- Сообщения
- 194
- Реакции
- 43
- Помог
- 4 раз(а)
- Ошибка
-
не до конца показывает рекламу
- ОС
- Linux
- Amx Mod X
-
Amx Mod X 1.9.0
- Билд
-
ReHLDS version: 3.7.0.685-dev
- ReGamedll
-
ReGameDLL version: 5.9.0.379-dev
- Версия Metamod
-
Metamod v1.21p37 2013/05/30 (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion.so v0.1.0.1 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck.so v0.1.6 ini Start Never
[ 3] VoiceTranscoder RUN - vtc.so v2017RC3 ini ANY
[ 4] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 5] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 6] AMX Mod X RUN - amxmodx.so v1.9.0.5 ini ANY
[ 7] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 8] WHBlocker RUN - whblocker.so v1.5.696 ini ANY
[ 9] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl6 ANY
[10] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl6 ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl6 ANY
[12] ReAimDetector RUN - reaimdetector_am v0.2.2 pl6 ANY Never
[13] ReAPI RUN - reapi_amxx_i386. v5.9.0.1 pl6 ANY Never
[14] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl6 ANY
[15] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl6 ANY
[16] Engine RUN - engine_amxx_i386 v1.9.0.5 pl6 ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl6 ANY
17 plugins, 17 running
- Список плагинов
-
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] Admin Loader 3.5 neygomon admin_loader.am running
[ 3] FreshBans 1.4.0b kanagava fresh_bans_183. running
[ 4] ScreenMaker 1.1 neygomon screen_maker.am running
[ 5] Ultimate Chats Control 5.2(c) neygomon ucc.amxx running
[ 6] UCC Addon: VoteGAG 1.2 neygomon ucc_votegag.amx running
[ 7] Admin Commands 1.9.0.5235 AMXX Dev Team admincmd.amxx running
[ 8] Slots Reservation 1.2 pUzzlik adminslots.amxx running
[ 9] Menus Front-End 1.5 neugomon menufront.amxx running
[ 10] Commands Menu 1.9.0.5235 AMXX Dev Team cmdmenu.amxx running
[ 11] Players Menu 1.7 neugomon plmenu.amxx running
[ 12] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 13] Maps Menu 1.4.2 neugomon mapsmenu.amxx running
[ 14] Admin Chat 1.9.0.5235 AMXX Dev Team adminchat.amxx running
[ 15] Player Votes 1.0 neugomon player_votes.am running
[ 16] [Fork] Lite NightMode 1.1 neygomon & NoNaM lite_nightmode. running
[ 17] Advanced MapChooser 1.4 neygomon map_chooser.amx running
[ 18] Night VIP 0.1 maFFyoZZyk night_vip.amxx running
[ 19] CS Misc. Stats 1.9.0.5247 AMXX Dev Team miscstats.amxx running
[ 20] Stats Configuration 1.9.0.5235 AMXX Dev Team statscfg.amxx running
[ 21] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 22] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 23] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 24] Restrict Weapons 1.9.0.5235 AMXX Dev Team restmenu.amxx running
[ 25] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 26] Lite Recoder 1.0.1 neygomon amx_demorec.amx running
[ 27] Advert Messages 1.22 neygomon adverts.amxx running
[ 28] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 29] [ReAPI] Advanced Team 0.1.0 Vaqtincha AdvancedTeamCho running
[ 30] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 31] Auto RR 1.1 AcE | sweden auto_rr.amxx stopped
[ 32] C4 Timer on roundtime 0.3.3a neygomon c4timer.amxx running
[ 33] [ReAPI] KiLL Assist poka_4to_b PRoSToTeM@ kill_assist_rea running
[ 34] First Kill 1.0 neygomon first_killer.am running
[ 35] Damager 0.0.5 steelzzz damager.amxx running
[ 36] [ReAPI] Lite TeamBalan 2.3 neugomon lite_balancer.a running
[ 37] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 38] Server Menu 0.1 maFFyoZZyk menu.amxx running
[ 39] Mode 2x2 2.5re s1lent mode.amxx running
[ 40] [ReAPI] No Team Flash 1.0 ReHLDS Team noteamflash.amx running
[ 41] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 42] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 43] Lite Rank System 1.6 AcE | serfreeman lrs_csstats.amx running
[ 44] [ReAPI] Slay Loosers 1.1 neugomon reapi_slayloose running
[ 45] TOP VIP (Auto Set) 2.0 Leo_[BH] & maFFy top_vip.amxx running
[ 46] Lite Vampire + Fade 1.3 neygomon vampire_sfade.a running
[ 47] Time for info 1.1 neugomon /// eL time_for_info.a running
[ 48] resetscore(ReAPI) 1.1 Phantom resetscore.amxx running
[ 49] Show Online 1.0 neugomon show_online.amx running
[ 50] Steam Menu 3.0 CaNiBaL | sweden steam_menu.amxx running
[ 51] User Connect 0.0.4 Jumper user_connect.am running
[ 52] Lite Translit 2.8 neygomon | swede lite_translit.a running
[ 53] [ReVIP] System Core 2.5 full pUzzlik re_vip_core.amx running
[ 54] [ReVIP] Menu 2.5 full pUzzlik re_vip_menu.amx running
[ 55] [ReVIP] Tab Info 2.5 full pUzzlik re_vip_tab_info running
[ 56] [ReVIP] Custom Shop 2.5 full pUzzlik re_vip_shop.amx running
[ 57] [ReVIP] Custom AK-47 2.5 full pUzzlik re_vip_custom_a stopped
[ 58] [ReVIP] Custom M4A1 2.5 full pUzzlik re_vip_custom_m stopped
[ 59] [ReVIP] Custom AWP 2.5 full pUzzlik re_vip_custom_a stopped
59 plugins, 55 running
- Автор плагина
- neygomon
- Версия плагина
- 1.22
- Исходный код
-
#include <amxmodx>
#if AMXX_VERSION_NUM < 183
#include <dhudmessage>
#endif
#define ALL_CHAT // Показывать всем. Для показа только мервым и спектаторам закомментируйте
#define ALL_DHUD //Раскомментируйте, если хотите показывать сообщения только мертвым игрокам.
#define CHAT_REPEAT_TIME 25.0 // Время между сообщениями
#define DHUD_INTERVAL 10.0 //Интервал между сообщениями (Время показа одного сообщения).
new adMessages[256][191];
new ad_count, iMessgCount;
new Array:g_apMessages, g_iCounter, g_iArraySize, g_pcvar_hostname;
public plugin_init()
{
register_plugin("Advert Messages", "1.22", "neygomon");
set_task(CHAT_REPEAT_TIME, "advert", .flags="b");
set_task(DHUD_INTERVAL, "dhud_advert", .flags="b");
g_pcvar_hostname = get_cvar_pointer("hostname");
g_apMessages = ArrayCreate(128);
}
public plugin_cfg()
{
new file = fopen("addons/amxmodx/configs/advert.ini", "rt");
if(file)
{
new buffer[512], message[191];
enum { chat, dhud };
new section = -1;
while(!feof(file))
{
fgets(file, buffer, charsmax(buffer));
trim(buffer);
switch(buffer[0])
{
case '[':
{
if(!strcmp(buffer, "[CHAT]")) section = chat;
else if(!strcmp(buffer, "[DHUD]")) section = dhud;
continue;
}
case '#': continue;
}
switch(section)
{
case chat:
{
if(buffer[0] != ';' && parse(buffer, message, charsmax(message)))
{
while(replace(message, charsmax(message), "!n", "^1")) {}
while(replace(message, charsmax(message), "!t", "^3")) {}
while(replace(message, charsmax(message), "!g", "^4")) {}
formatex(adMessages[ad_count++], charsmax(adMessages[]), "^1%s", message);
}
}
case dhud:
{
new dhHostname[64], dhIP[32];
get_user_ip(0, dhIP, charsmax(dhIP));
get_pcvar_string(g_pcvar_hostname, dhHostname, 63);
if(buffer[0] != ';' && parse(buffer, message, charsmax(message)))
{
while(replace(message, charsmax(message), "%ip%", dhIP)) {}
while(replace(message, charsmax(message), "%hostname%", dhHostname)) {}
while(replace(message, charsmax(message), "%new%", "^n")) {}
ArrayPushArray(g_apMessages, message);
}
g_iArraySize = ArraySize(g_apMessages);
}
default: continue;
}
}
fclose(file);
}
else set_fail_state("File ^"addons/amxmodx/configs/advert.ini^" not found!");
}
public advert()
{
#if defined ALL_CHAT
ChatColor(0, "%s", adMessages[iMessgCount == ad_count ? (iMessgCount = 0) : iMessgCount++]);
#else
static players[32], pcount;
get_players(players, pcount, "bch");
for(new i; i < pcount; i++) ChatColor(players[i], "%s", adMessages[iMessgCount == ad_count ? (iMessgCount = 0) : iMessgCount++]);
#endif
}
public dhud_advert()
{
if(++g_iCounter >= g_iArraySize) g_iCounter = 0;
static i, apPlayers[32], iPlayers;
#if defined ALL_DHUD
get_players(apPlayers, iPlayers, "bch");
#endif
static szMess[128], szName[32];
ArrayGetString(g_apMessages, g_iCounter, szMess, charsmax(szMess));
set_dhudmessage(random_num(1, 255), random_num(1, 255), random_num(1, 255), -1.0, 0.02, 0, 2.0, DHUD_INTERVAL - 1.0);
for(i = 0; i < iPlayers; i++)
{
replace_all(szMess, charsmax(szMess), szName, "%name%");
get_user_name(apPlayers[i], szName, charsmax(szName));
replace_all(szMess, charsmax(szMess), "%name%", szName);
show_dhudmessage(apPlayers[i], szMess);
}
}
stock ChatColor(const id, const szMessage[], any:...)
{
static pnum, players[32], szMsg[190], IdMsg;
vformat(szMsg, charsmax(szMsg), szMessage, 3);
if(!IdMsg) IdMsg = get_user_msgid("SayText");
if(id)
{
players[0] = id;
pnum = 1;
}
else get_players(players, pnum, "ch");
for(new i; i < pnum; i++)
{
message_begin(MSG_ONE, IdMsg, .player = players[i]);
write_byte(players[i]);
write_string(szMsg);
message_end();
}
}
не до конца показывает дхуд
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
106.1 KB Просмотры: 303
-
104.1 KB Просмотры: 266
-
2.7 KB Просмотры: 318