Forward Banned in Telegram

Сообщения
43
Реакции
0
Hello i want one help i have one plugin witch all banned sent in telegram but i have one problem in telegram banned what make from Rechecker not show complet but just text.If i write with command banned are okey i explain in photo. It is any possible to fix this problem ?
P.S : "../wh_by_~1.dll" UNKNOWN "fb_ban 120 [userid] '[AntiCheat] WH_by_cheats'; rc_log WH_by_cheats | md5hash '[file_md5hash]' - file


Код:
#include <amxmodx>
#include <grip>
#include <freshbans>

new const g_URL[] = "https://api.telegram.org/bot6378007736:AAFKmEdZYY4k3qSk3P5bqbyVno6rHu9T1xs/sendmessage?chat_id=-1002133581790&text=";
public plugin_init() {
    register_plugin("Telegram FB", "1.0.0", "DEVVV");
}

public HandleRequest() {
    new GripResponseState:responseState = grip_get_response_state();
    new GripHTTPStatus:status = grip_get_response_status_code();

    log_amx("HandleRequest: Response State: %d, HTTP Status: %d", responseState, status);

    if (responseState == GripResponseStateError) {
        log_amx("HandleRequest: Error in response. Aborting.");
        return;
    }

    if (status == GripHTTPStatusCreated) {
        log_amx("HandleRequest: Successful response. Message sent successfully.");
    } else {
        log_amx("HandleRequest: Unexpected HTTP status. Aborting.");
    }
}

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 player_ip[32]
    get_user_ip(id, player_ip, charsmax(player_ip), 1)
    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 server_ip[32]
    get_user_ip(0, server_ip, charsmax(server_ip), 0)


    new text[800]
    formatex(text, charsmax(text), "%s*** Admini : [%s] | beri Banned : [%s] | per : [%d minuta] | Arsyeja : [%s] | Koha : [%s] | Harta : [%s] | info lojtarit : [%s | %s] | detajet adminit : [%s] | serveri : %s | %s ***", g_URL, admin_name, name, bantime, reason, szTime, map, steamid, player_ip, admin_steamid, sName, server_ip);
    grip_request(text, Empty_GripBody, GripRequestTypeGet, "HandleRequest"); // https://core.telegram.org/bots/api#making-requests
}
 

Download all Attachments

Сообщения
673
Реакции
242
Помог
11 раз(а)
I'm not sure, but try escaping some variables like names, reasons, quotes -> ` <-, etc.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу