⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
Server ip : 95.173.173.2 || Ts3 : LCAPRO www.lcapro.net
Sponsor Görsel 2
SponsorSponsor

c4 kurulma bölgesi gösterme

Konu

#1
merhaba 

Ekranda C4 ün hangi bölgeye kuruldugunu gösteren bi eklenti varmıdır
resim olarak ekledim yardımcı olursanız sevinirim iyi forumlar
Dosya Adı: 20250916134134_1.jpg | Dosya Boyutu: 224,02 KB | 16-09-2025, 13:54
ReckLesS PRO×PUB Since 2009  | ip: 95.173.173.9 | Ts3: recklesspro
#2
https://www.webailesi.com/konu-bomba-kurulu-yeri-bildir-34571 biraz araştirma yapin.
ZebaniBey
Son Düzenleme: 16-09-2025, 14:02, Düzenleyen: ZebaniBey.Son Düzenleme: 16-09-2025, 14:02, Düzenleyen: ZebaniBey.
#3
(16-09-2025, 14:01)ZebaniBey Adlı Kullanıcıdan Alıntı: https://www.webailesi.com/konu-bomba-kurulu-yeri-bildir-34571 biraz araştirma yapin.
bunu gördüm de ben ekranın orta kısmında olsun istiyorum resim ekledim
ReckLesS PRO×PUB Since 2009  | ip: 95.173.173.9 | Ts3: recklesspro
#4
https://www.webailesi.com/konu-c4-konum-gosterme-eklentisi-29881 Bu daha çok iş görmez mi hocam bi bak istersen
Veldora Valorant Mod~ 95.173.173.39
Son Düzenleme: 16-09-2025, 15:54, Düzenleyen: kage.
#5
(16-09-2025, 15:54)kage Adlı Kullanıcıdan Alıntı: https://www.webailesi.com/konu-c4-konum-gosterme-eklentisi-29881 Bu daha çok iş görmez mi hocam bi bak istersen
bunu kullanıyorum sunucuda bahsettiğim bu değil yinede teşekkür ederim
ReckLesS PRO×PUB Since 2009  | ip: 95.173.173.9 | Ts3: recklesspro
#6
Eklentiyi eke koyun hud olarak güncelleyelim.
Steam:Tıkla • Discord: lynchk
#7
(16-09-2025, 19:29)Lynchk Adlı Kullanıcıdan Alıntı: Eklentiyi eke koyun hud olarak güncelleyelim.
https://www.webailesi.com/ds-bombayerr-16592.sma
ReckLesS PRO×PUB Since 2009  | ip: 95.173.173.9 | Ts3: recklesspro
#8
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN_NAME        "Bomba kurulu yeri goster"
#define PLUGIN_VERSION     "1.1.1"
#define PLUGIN_AUTHOR      "Osmanbnm"

#define MAX_PLAYERS        32
#define MAX_ZONES          8

new pcv_enable;
new 
pcv_tag;

new 
g_zoneEnts[MAX_ZONES];
new 
Float:g_zoneCenter[MAX_ZONES][3];
new 
g_zoneLetter[MAX_ZONES];
new 
g_zoneCount;

new 
g_playerZone[MAX_PLAYERS 1];
new 
g_lastPlanter;
new 
bool:g_sitesFinalized;

stock detect_letter_from_string(const s[])
{
    new up[128];
    copy(upcharsmax(up), s);
    strtoupper(up);

    if (contain(up"BOMBSITE A") != -|| contain(up"BOMB SITE A") != -|| contain(up"BOMB A") != -|| contain(up"SITE A") != -1)
        return 'A';
    if (contain(up"BOMBSITE B") != -|| contain(up"BOMB SITE B") != -|| contain(up"BOMB B") != -|| contain(up"SITE B") != -1)
        return 'B';

    new len strlen(up);
    new bool:hasA = (contain(up" A") != -1) || (len && (up[0] == 'A' || up[len-1] == 'A')) || (contain(up"_A") != -1) || (contain(up"-A") != -1);
    new bool:hasB = (contain(up" B") != -1) || (len && (up[0] == 'B' || up[len-1] == 'B')) || (contain(up"_B") != -1) || (contain(up"-B") != -1);
    if (hasA && !hasB) return 'A';
    if (hasB && !hasA) return 'B';
    return 0;
}

stock detect_letter_from_entity(ent)
{
    new s[128], ch;
    entity_get_string(entEV_SZ_targetnamescharsmax(s));
    if ((ch detect_letter_from_string(s))) return ch;
    entity_get_string(entEV_SZ_targetscharsmax(s));
    if ((ch detect_letter_from_string(s))) return ch;
    entity_get_string(entEV_SZ_netnamescharsmax(s));
    if ((ch detect_letter_from_string(s))) return ch;
    entity_get_string(entEV_SZ_messagescharsmax(s));
    if ((ch detect_letter_from_string(s))) return ch;
    return 0;
}

stock get_brush_center(entFloat:outCenter[3])
{
    new Float:mins[3], Float:maxs[3];
    entity_get_vector(entEV_VEC_absminmins);
    entity_get_vector(entEV_VEC_absmaxmaxs);
    outCenter[0] = (mins[0] + maxs[0]) * 0.5;
    outCenter[1] = (mins[1] + maxs[1]) * 0.5;
    outCenter[2] = (mins[2] + maxs[2]) * 0.5;
}

stock zone_index_by_ent(ent)
{
    for (new 0g_zoneCounti++)
    {
        if (g_zoneEnts[i] == ent)
            return 1;
    }
    return 0;
}

stock bool:is_valid_player(id) { return (id >= && id <= MAX_PLAYERS) && is_user_connected(id); }

stock scan_bombsites()
{
    g_zoneCount 0;
    g_sitesFinalized false;
    arrayset(g_zoneEnts0sizeof g_zoneEnts);
    arrayset(g_zoneLetter0sizeof g_zoneLetter);
    for (new 0MAX_ZONESi++)
    {
        g_zoneCenter[i][0] = 0.0;
        g_zoneCenter[i][1] = 0.0;
        g_zoneCenter[i][2] = 0.0;
    }

    new ent 0;
    while ((ent find_ent_by_class(ent"func_bomb_target")) && g_zoneCount MAX_ZONES)
    {
        g_zoneEnts[g_zoneCount] = ent;
        get_brush_center(entg_zoneCenter[g_zoneCount]);
        g_zoneLetter[g_zoneCount] = detect_letter_from_entity(ent);
        g_zoneCount++;
    }

    ent 0;
    while ((ent find_ent_by_class(ent"info_bomb_target")) && g_zoneCount MAX_ZONES)
    {
        g_zoneEnts[g_zoneCount] = ent;
        entity_get_vector(entEV_VEC_origing_zoneCenter[g_zoneCount]);
        g_zoneLetter[g_zoneCount] = detect_letter_from_entity(ent);
        g_zoneCount++;
    }

    finalize_site_letters();
}

stock finalize_site_letters()
{
    if (g_zoneCount == 0) { g_sitesFinalized true; return; }

    new haveA = -1haveB = -1;
    for (new 0g_zoneCounti++)
    {
        if (g_zoneLetter[i] == 'A'haveA i;
        if (g_zoneLetter[i] == 'B'haveB i;
    }

    if (haveA != -&& haveB != -1) { g_sitesFinalized true; return; }

    if (g_zoneCount == 1)
    {
        g_zoneLetter[0] = 'A';
        g_sitesFinalized true;
        return;
    }

    if (g_zoneCount >= && haveA == -&& haveB == -1)
    {
        new i1 0i2 1;
        if (g_zoneCenter[i2][0] < g_zoneCenter[i1][0]
         || (floatabs(g_zoneCenter[i2][0] - g_zoneCenter[i1][0]) < 0.001 && g_zoneCenter[i2][1] < g_zoneCenter[i1][1]))
        {
            new tmp i1i1 i2i2 tmp;
        }
        g_zoneLetter[i1] = 'A';
        g_zoneLetter[i2] = 'B';
        g_sitesFinalized true;
        return;
    }

    if (haveA != -&& haveB == -1)
    {
        new idxB find_other_closest(haveA);
        if (idxB != -1g_zoneLetter[idxB] = 'B';
        g_sitesFinalized true;
        return;
    }
    if (haveB != -&& haveA == -1)
    {
        new idxA find_other_closest(haveB);
        if (idxA != -1g_zoneLetter[idxA] = 'A';
        g_sitesFinalized true;
        return;
    }

    g_sitesFinalized true;
}

stock Float:vec_distance(const Float:a[3], const Float:b[3])
{
    new Float:dx a[0] - b[0];
    new Float:dy a[1] - b[1];
    new Float:dz a[2] - b[2];
    return floatsqroot(dx*dx dy*dy dz*dz);
}

stock find_other_closest(refIdx)
{
    new best = -1;
    new Float:bestDist 9999999.9;
    for (new 0g_zoneCounti++)
    {
        if (== refIdx) continue;
        new Float:vec_distance(g_zoneCenter[refIdx], g_zoneCenter[i]);
        if (bestDist)
        {
            bestDist d;
            best i;
        }
    }
    return best;
}

stock nearest_zone_to_player(id)
{
    if (!is_valid_player(id) || g_zoneCount == 0) return -1;
    new Float:origin[3];
    entity_get_vector(idEV_VEC_originorigin);
    new best = -1;
    new Float:bestDist 9999999.9;
    for (new 0g_zoneCounti++)
    {
        new Float:vec_distance(origing_zoneCenter[i]);
        if (bestDist)
        {
            bestDist d;
            best i;
        }
    }
    return best;
}

public 
plugin_init()
{
    register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);

    pcv_enable register_cvar("wai_bombsite_info""1");
    pcv_tag    register_cvar("wai_tag""[WebAilesi]");

    scan_bombsites();

    register_event("BarTime""ev_BarTime_Plant""be""1=3");
    register_event("SendAudio""ev_Bomb_Planted""a""2&%!MRAD_BOMBPL");

    register_touch("func_bomb_target""player""fw_Touch_BombTarget");

    register_event("DeathMsg""ev_DeathMsg""a");
    register_logevent("ev_RoundStart"2"1=Round_Start");
    register_logevent("ev_GameCommencing"2"1=Game_Commencing");
}

public 
ev_RoundStart()
{
    g_lastPlanter 0;
    arrayset(g_playerZone0sizeof g_playerZone);
}

public 
ev_GameCommencing()
{
    g_lastPlanter 0;
    arrayset(g_playerZone0sizeof g_playerZone);
}

public 
client_disconnected(id)
{
    if (!is_valid_player(id)) return;
    g_playerZone[id] = 0;
    if (g_lastPlanter == idg_lastPlanter 0;
}

public 
ev_DeathMsg()
{
    new id read_data(2);
    if (is_valid_player(id))
    {
        g_playerZone[id] = 0;
        if (g_lastPlanter == idg_lastPlanter 0;
    }
}

public 
fw_Touch_BombTarget(entid)
{
    if (!is_valid_player(id) || !ent) return;
    new idx zone_index_by_ent(ent);
    if (idxg_playerZone[id] = idx;
}

public 
ev_BarTime_Plant(id)
{
    if (!get_pcvar_num(pcv_enable)) return;
    if (!is_valid_player(id)) return;
    g_lastPlanter id;
}

public 
ev_Bomb_Planted()
{
    if (!get_pcvar_num(pcv_enable)) return;

    new tag[32];
    get_pcvar_string(pcv_tagtagcharsmax(tag));

    new zoneIdx = -1;
    new letter 0;

    if (is_valid_player(g_lastPlanter))
    {
        new lastTouch g_playerZone[g_lastPlanter];
        if (lastTouch >= && lastTouch <= g_zoneCountzoneIdx lastTouch 1;
        else zoneIdx nearest_zone_to_player(g_lastPlanter);
    }
    else
    {
        if (g_zoneCount >= 1zoneIdx 0;
    }

    if (zoneIdx != -1letter g_zoneLetter[zoneIdx];

    set_dhudmessage(200200200, -1.00.200_5.0);

    if (letter == 'A' || letter == 'B')
        show_dhudmessage(0"Bomba %s bölgesine kuruldu!", (letter == 'A') ? "A" "B");
    else
        show_dhudmessage(0"Bomba Kuruldu!");

    g_lastPlanter 0;
}

public 
plugin_cfg()
{
    if (!g_sitesFinalizedfinalize_site_letters();

Steam:Tıkla • Discord: lynchk
#9
İstek konusu, @Lynchk adlı kullanıcı tarafından 8 saat içinde çözülmüştür.
İsteği çözdüğü için Lynchk Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
Lynchk Adlı kullanıcı sizin dışınızda toplam 1077 kişiye yardım etmiştir.

Herhangi bir konuda hata olduğunu düşünüyorsanız destek sistemi üzerinden iletişim kurabilirsiniz.

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da