Участник
Пользователь
- Сообщения
- 372
- Реакции
- 47
- Помог
- 6 раз(а)
- Ошибка
-
Ошибок нет
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5294 (http://www.amxmodx.org)
- Билд
-
ReHLDS version: 3.13.0.788-dev
- ReGamedll
-
ReGameDLL version: 5.22.0.593-dev
- Версия Metamod
-
Metamod-r v1.3.0.131, API (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.137 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 5] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 6] SafeNameAndChat RUN - SafeNameAndChat.so v1.2 Beta 3 ini ANY ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[ 9] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[10] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[11] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[13] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[15] ReAPI RUN - reapi_amxx_i386.so v5.22.0.254-dev pl2 ANY Never
[16] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl2 ANY ANY
[17] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
- Список плагинов
-
[ 14] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 16] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 17] HideNSeek 2.8 Exolent hidenseek.amxx running
[ 18] HP Autoheal 1.4 AciD autoheal.amxx running
[ 19] Block Manager 1.0 maFFyoZZyk block_manager.a running
[ 20] JumpStats 2.42 BorJomi uq_jumpstats.am running
[ 21] Tops_JumpStats 2.42 BorJomi uq_jumpstats_to running
[ 22] FrostNades 2.14 Avalanche frostnades.amxx running
[ 23] Block Change Team 1.0.0 F@nt0M block_change_te running
[ 24] blockmaker 4.01 Necro blockmaker_v4.0 debug
[ 25] Camera Changer 1.3 Bl0ck Camera_Changer. running
[ 26] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 27] Weapon Chance 2.8 Exolent weapon_chance.a running
[ 28] Spawn Protection 7.0 Peli spawnprotection running
[ 29] HNS: AntiFrag 1.0 Kaido Ren hns_antifrag.am running
[ 30] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 31] AFK Control 1.0 mx?! afk_control.amx running
[ 32] Vip 1.0.0 ufame hns_vipmenu.amx debug
[ 33] Reklama 20.05.2020 mx?! reklama.amxx running
[ 35] HNS-Distance 1.2.0 wellasgood HNS-Distance.am running
[ 37] CA: Crack 1.0 Garey & Juice client_analyzer running
[ 38] SpecInfo 1.3.1 Ian Cammarata specinfo_1.3.1. running
[ 39] Life_Menu 0.1 Bos93 life_menu.amxx debug
[ 40] HNS: Humiliation 1.0.0 ufame hns_humiliation running
[ 41] HNS Flash Notifier 1.1.0 OpenHNS flash-notifier. running
[ 42] plugin_trail 1.3.1 Bahrmanou plugin_trail.am running
[ 43] Models Replacement 0.0.2+fix ConnorMcLeod | V models_replacem running
[ 44] BhopHack Detector 0.1 Mistrick bhophack_detect running
[ 45] [FB] Telegram sender 1.0.0 DEVV telegram_bans.a running
[ 46] [FB] Telegram sender 1.0.0 DEVV telegram_gags.a running
[ 47] Chat Manager 1.1.2-16 Mistrick chatmanager.amx debug
[ 48] ChatAdditions: Core v1.9.1 Sergey Shorokhov ChatAdditions_C debug
[ 49] ChatAdditions: SQLite v1.9.1 Sergey Shorokhov CA_Storage_SQLi debug
[ 50] CA: Anti Flood v1.9.1 Nordic Warrior CA_AntiFlood.am debug
[ 51] CA: Mute v1.9.1 Sergey Shorokhov CA_Mute.amxx debug
[ 52] CA Addon: Death mute v1.9.1 Sergey Shorokhov CA_Addon_DeathM debug
[ 53] CA Addon: Rank restric v1.9.1 steelzzz CA_Addon_RankRe debug
[ 54] CA: VoteGAG 1.0.0-alph Sergey Shorokhov CA_Addon_VoteGa debug
[ 55] CA Addon: Request UnGA v1.9.1 steelzzz CA_Addon_Reques debug
[ 56] CA: Gag v1.9.1 Sergey Shorokhov CA_Gag.amxx debug
[ 57] Map Manager: Core 3.1.5 Mistrick map_manager_cor running
[ 58] Map Manager: Scheduler 0.1.10 Mistrick map_manager_sch running
[ 59] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 60] Map Manager: Nominatio 0.2.1 Mistrick map_manager_nom running
[ 61] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 62] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[ 63] Map Manager: Effects 0.1.1 Mistrick map_manager_eff running
[ 64] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 65] Map Manager: Sounds 0.0.2 Mistrick map_manager_sou running
- Автор плагина
- dev-cs.ru
- Версия плагина
- 1.0.0
- Исходный код
-
#include <amxmodx>
#include <grip>
#include <freshbans>
new const g_URL[] = "https://api.telegram.org/botМОЙ_ТОКЕН/sendmessage?chat_id=АЙДИГРУППЫ&message_thread_id=АЙДИТЕМЫ&text=";
public plugin_init() {
register_plugin("[FB] Telegram sender", "1.0.0", "DEVV");
}
public HandleRequest() {
new GripResponseState:responseState = grip_get_response_state();
if (responseState == GripResponseStateError) {
return;
}
new GripHTTPStatus:status = grip_get_response_status_code();
if (status != GripHTTPStatusCreated) {
return;
}
}
public fbans_player_banned_pre_f(
const id,
const userid,
const steamid[],
const ip[],
const name[],
const admin_ip[],
const admin_steamid[],
const admin_name[],
const ban_type[],
const reason[],
const bantime
)
{
new map[32]
get_mapname(map, charsmax(map))
new szTime[64]; get_time("%Y/%m/%d - %H:%M:%S", szTime, charsmax(szTime));
new sName[32]
get_user_name(0, sName, charsmax(sName));
new ip[32]
get_user_ip(0, ip, charsmax(ip), 0)
new text[512]
formatex(text, charsmax(text), "%s*** Админ : [%s] | забанил игрока : [%s] | на : [%d минут] | причина : [%s] | дата : [%s] | карта : [%s] | данные игрока : [%s | %s] | данные админа : [%s] | сервер : %s | %s ***", g_URL, admin_name, name, bantime, reason, szTime, map, steamid, ip, admin_steamid, sName, ip);
grip_request(text, Empty_GripBody, GripRequestTypeGet, "HandleRequest"); // https://core.telegram.org/bots/api#making-requests
}
Всем привет, когда-то на форуме я создал эту тему. Спустя время, я решил вновь поставить его к себе на сервер, а плагин почему-то не работает. Однако, если сделать такой запрос в гугле
Сообщение хелло приходит в эту тему группы... помогите разобраться, спасибо.
https://api.telegram.org/botМОЙ_ТОКЕН/sendmessage?chat_id=АЙДИ_ГРУППЫ&message_thread_id=АЙДИ_ТЕМЫ&text=Hello"
Сообщение хелло приходит в эту тему группы... помогите разобраться, спасибо.
В этой теме было размещено решение! Перейти к решению.