CURL AMX_INFO

dd=

Пользователь
Регистрация
30 Дек 2018
Сообщения
11
Симпатии
0
OS
Windows
Amx Mod X
ReAMXX 1.8.3
Билд
[code=cpp]Protocol version 48 Exe version 1.6.3.7/Stdio (cstrike) ReHLDS version: 3.4.0.668-dev Build date: 09:47:42 Sep 29 2018 (1631) Build from: https://github.com/dreamstalker/rehlds/commit/89be216[code=cpp]
ReGamedll
[code=cpp]ReGameDLL version: 5.7.0.314-dev Build date: 10:33:17 Oct 5 2018 Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/7aeca16[/code]
Metamod
[code=cpp]Metamod-r v1.3.0.128, API (5:13) Metamod-r build: 17:47:54 Aug 24 2018 Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70[/code]
Meta модули
Код:
[ 1] Reunion RUN - reunion_mm.dll v0.1.0.92 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm.dll v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm.dll v2.5 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5232 ini Start ANY
[ 5] WHBlocker RUN - whblocker_mm.dll v1.5.695 ini Chlvl ANY
[ 6] ReSemiclip RUN - resemiclip_mm.dll v2.3.9 ini Chlvl ANY
[ 7] Fun RUN - fun_amxx.dll v1.9.0.5232 pl4 ANY ANY
[ 8] Engine RUN - engine_amxx.dll v1.9.0.5232 pl4 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5232 pl4 ANY ANY
[10] SxGeo RUN - sxgeo_amxx.dll v2.2 pl4 ANY Never
[11] CURL AMXX RUN - curl_amxx.dll v1.1.1 pl4 ANY ANY
[12] CStrike RUN - cstrike_amxx.dll v1.9.0.5232 pl4 ANY ANY
[13] CSX RUN - csx_amxx.dll v1.9.0.5232 pl4 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5232 pl4 ANY ANY
[15] ReAPI RUN - reapi_amxx.dll v5.6.0.160-dev pl4 ANY Never
Плагины
Код:
[ 1] Reunion RUN - reunion_mm.dll v0.1.0.92 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm.dll v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm.dll v2.5 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5232 ini Start ANY
[ 5] WHBlocker RUN - whblocker_mm.dll v1.5.695 ini Chlvl ANY
[ 6] ReSemiclip RUN - resemiclip_mm.dll v2.3.9 ini Chlvl ANY
[ 7] Fun RUN - fun_amxx.dll v1.9.0.5232 pl4 ANY ANY
[ 8] Engine RUN - engine_amxx.dll v1.9.0.5232 pl4 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5232 pl4 ANY ANY
[10] SxGeo RUN - sxgeo_amxx.dll v2.2 pl4 ANY Never
[11] CURL AMXX RUN - curl_amxx.dll v1.1.1 pl4 ANY ANY
[12] CStrike RUN - cstrike_amxx.dll v1.9.0.5232 pl4 ANY ANY
[13] CSX RUN - csx_amxx.dll v1.9.0.5232 pl4 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5232 pl4 ANY ANY
[15] ReAPI RUN - reapi_amxx.dll v5.6.0.160-dev pl4 ANY Never
Amxx Модули
Код:
Fun 1.9.0.5232 AMX Mod X Dev Team running
Engine 1.9.0.5232 AMX Mod X Dev Team running
FakeMeta 1.9.0.5232 AMX Mod X Dev Team running
SxGeo 2.2 s1lent running
CURL AMXX 1.1.1 Polarhigh running
nVault 1.9.0.5232 AMX Mod X Dev Team running
CStrike 1.9.0.5232 AMX Mod X Dev Team running
CSX 1.9.0.5232 AMX Mod X Dev Team running
Ham Sandwich 1.9.0.5232 AMX Mod X Dev Team running
ReAPI 5.6.0.160- Asmodai & s1lent running
Sockets 1.9.0.5232 AMX Mod X Dev Team running
RegEx 1.9.0.5232 AMX Mod X Dev Team running
Ошибка
Код:
s
всем ку нужна помоши !

хотелось бы чтобы сделать плагин при вводе команды amx_info имя ! выводилась инфа в консоле с json http://ip-api.com/json/127.0.0.1 пример! с помощью модуля curl!

C++:
#include <amxmodx>
#include <amxmisc>

#define ACCESS ADMIN_KICK

public plugin_init()
{
    register_plugin("Show IP","1.0","name")
    register_concmd("amx_ip","ShowIP",ACCESS,"Nick & all")
}

public ShowIP(id , level , cid)
{
    if(!cmd_access(id , level , cid , 2))
    return PLUGIN_HANDLED

    new Arg[36]
    new szIP[46] , szName[36]
    new Players[32] , pnum
    read_argv(1, Arg , 35)
    if(equal( Arg , "all"))
    {
            get_players( Players , pnum , "c")
            console_print(id , "- - - [ CS1.6 IP ] - - - ")
            for(new i=0; i < pnum; i++)
            {
                get_user_ip(Players[i],szIP , 45 , 1)
                get_user_name(Players[i] , szName , 35)
                console_print(id , "[ %d ] NICK: %s - IP: %s", (i + 1), szName , szIP)
            }
    }
    else
    {
            new Target = cmd_target(id , Arg , 10)
            if(!is_user_connected(Target))
                return PLUGIN_HANDLED
            get_user_ip( Target , szIP , 45 , 1)
            get_user_name( Target , szName , 35)
            console_print( id , "[AMXX] NICK: %s - IP: %s", szName , szIP)
    }
    return PLUGIN_CONTINUE;
}
 
K

kapangaIII

Как пытался? Покажи.






C++:
tgtgtgt
C++:
tgtgtgt
FIELD LINE исправь бб коды, при использовании template они не срабатывают как можно заметить из первого поста темы. Более чем уверен что из-за
 
Сверху Снизу