⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
🇹🇷 TR Lokasyon | 🛡️ Gelişmiş DDoS Koruması | ⚡ Düşük Ping | 🎧 Kesintisiz TS3 | Hostlar
Sponsor Görsel 2
SponsorSponsor

Konu

#1
/unammoal yazınca menu açılıcak şöyle

Webailesi - Unammo Menu

Unammo al (2elde bir geçerli) 2000 dolar karşılığuında

şeklinde
#2
PHP Kod:
#include <amxmodx>
#include <cstrike>
#include <fun>

#define SUNUCU_TAG "^4[Webailesi]^1"
#define PLUGIN "Unammo Menu"
#define VERSION "1.0"
#define AUTHOR "XhAs"

new g_LastUnammoRound[33];

public 
plugin_init()
{
    register_plugin(PLUGINVERSIONAUTHOR);
    register_clcmd("say /unammoal""CmdUnammoMenu");
    register_clcmd("say_team /unammoal""CmdUnammoMenu");
    register_event("HLTV""EventNewRound""a""1=0""2=0");
}

public 
EventNewRound()
{
    for (new id 1id <= 32id++)
        g_LastUnammoRound[id] = max(g_LastUnammoRound[id] - 10);
}

public 
CmdUnammoMenu(id)
{
    if (!is_user_alive(id) || !is_user_connected(id))
        return PLUGIN_HANDLED;

    new menuTitle[64];
    formatex(menuTitlecharsmax(menuTitle), "\yWebailesi \rUnammo Menu");
    new menu menu_create(menuTitle"MenuHandler");
    menu_additem(menu"\rUnammo al \y(2 elde bir gecerli) \r2000 dolar karsiliginda");
    menu_display(idmenu0);
    return PLUGIN_HANDLED;
}

public 
MenuHandler(idmenuitem)
{
    menu_destroy(menu);

    if (item != 0)
        return PLUGIN_HANDLED;

    if (!is_user_alive(id) || !is_user_connected(id))
        return PLUGIN_HANDLED;

    if (g_LastUnammoRound[id] > 0)
    {
        ColorChat(id"%s Unammo hakkinizi ^3iki elde bir ^1kullanabilirsiniz."SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    new money cs_get_user_money(id);
    if (money 2000)
    {
        ColorChat(id"%s Yeterli paraniz yok. (^32000$ ^1gerekli)"SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    new weapon get_user_weapon(id);

    if (weapon <= CSW_KNIFE || weapon CSW_P90)
    {
        ColorChat(id"%s Elinizde ^3gecerli ^1bir silah yok!"SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    cs_set_user_money(idmoney 20001);
    SetFullAmmo(idweapon);
    g_LastUnammoRound[id] = 2;
    ColorChat(id"%s Silahinizin tum mermileri ^3yenilendi^1!"SUNUCU_TAG);
    return PLUGIN_HANDLED;
}

stock SetFullAmmo(idweapon)
{
    new maxClip 0maxAmmo 0;
    switch(weapon)
    {
        case CSW_P228:        maxClip 13maxAmmo 52; }
        case CSW_SCOUT:       maxClip 10maxAmmo 90; }
        case CSW_XM1014:      maxClip 7;  maxAmmo 32; }
        case CSW_MAC10:       maxClip 30maxAmmo 100; }
        case CSW_AUG:         maxClip 30maxAmmo 90; }
        case CSW_ELITE:       maxClip 30maxAmmo 120; }
        case CSW_FIVESEVEN:   maxClip 20maxAmmo 100; }
        case CSW_UMP45:       maxClip 25maxAmmo 100; }
        case CSW_SG550:       maxClip 30maxAmmo 90; }
        case CSW_GALI:        maxClip 35maxAmmo 90; }
        case CSW_FAMAS:       maxClip 25maxAmmo 90; }
        case CSW_USP:         maxClip 12maxAmmo 100; }
        case CSW_GLOCK18:     maxClip 20maxAmmo 120; }
        case CSW_AWP:         maxClip 10maxAmmo 30; }
        case CSW_MP5NAVY:     maxClip 30maxAmmo 120; }
        case CSW_M249:        maxClip 100maxAmmo 200; }
        case CSW_M3:          maxClip 8;  maxAmmo 32; }
        case CSW_M4A1:        maxClip 30maxAmmo 90; }
        case CSW_TMP:         maxClip 30maxAmmo 120; }
        case CSW_G3SG1:       maxClip 20maxAmmo 90; }
        case CSW_DEAGLE:      maxClip 7;  maxAmmo 35; }
        case CSW_SG552:       maxClip 30maxAmmo 90; }
        case CSW_AK47:        maxClip 30maxAmmo 90; }
        case CSW_P90:         maxClip 50maxAmmo 100; }
        default: return;
    }
    set_user_clip(idweaponmaxClip);
    cs_set_user_bpammo(idweaponmaxAmmo);
}

stock set_user_clip(idweaponamount)
{
    if (amount <= 0) return;
    new weapon_ent get_pdata_cbase(id373 weapon5);
    if (weapon_ent 0)
        set_pdata_int(weapon_ent51amount4);
}

stock ColorChat(id, const message[], any:...)
{
    new szMsg[192];
    vformat(szMsgcharsmax(szMsg), message3);

    new msgSayText get_user_msgid("SayText");

    message_begin(MSG_ONEmsgSayText, {0,0,0}, id);
    write_byte(id);
    write_string(szMsg);
    message_end();

Eklenti yapımcısı ben değilim sadace menü kısmını uyarladım dene bir ?
✦ Discord: Osmanbnm ✦
#3
(10-09-2025, 19:01)yigitsq Adlı Kullanıcıdan Alıntı: /unammoal yazınca menu açılıcak şöyle

Webailesi - Unammo Menu

Unammo al (2elde bir geçerli) 2000 dolar karşılığuında

şeklinde
1757521065_takemoneyfromchatv2.sma(115) : error 017: undefined symbol "get_pdata_cbase"
1757521065_takemoneyfromchatv2.sma(117) : error 017: undefined symbol "set_pdata_int"
1757521065_takemoneyfromchatv2.sma(112) : warning 203: symbol is never used: "id"
hata veriyor pluginin adının farklı olduguna bakma kopyalayıp orraya attım
#4
(10-09-2025, 19:24)yigitsq Adlı Kullanıcıdan Alıntı:
(10-09-2025, 19:01)yigitsq Adlı Kullanıcıdan Alıntı: /unammoal yazınca menu açılıcak şöyle

Webailesi - Unammo Menu

Unammo al (2elde bir geçerli) 2000 dolar karşılığuında

şeklinde
1757521065_takemoneyfromchatv2.sma(115) : error 017: undefined symbol "get_pdata_cbase"
1757521065_takemoneyfromchatv2.sma(117) : error 017: undefined symbol "set_pdata_int"
1757521065_takemoneyfromchatv2.sma(112) : warning 203: symbol is never used: "id"
hata veriyor pluginin adının farklı olduguna bakma kopyalayıp orraya attım

PHP Kod:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>

#define SUNUCU_TAG "^4[Webailesi]^1"
#define PLUGIN "Unammo Menu"
#define VERSION "1.0"
#define AUTHOR "XhAs"

new g_LastUnammoRound[33];

public 
plugin_init()
{
    register_plugin(PLUGINVERSIONAUTHOR);
    register_clcmd("say /unammoal""CmdUnammoMenu");
    register_clcmd("say_team /unammoal""CmdUnammoMenu");
    register_event("HLTV""EventNewRound""a""1=0""2=0");
}

public 
EventNewRound()
{
    for (new id 1id <= 32id++)
        g_LastUnammoRound[id] = max(g_LastUnammoRound[id] - 10);
}

public 
CmdUnammoMenu(id)
{
    if (!is_user_alive(id) || !is_user_connected(id))
        return PLUGIN_HANDLED;

    new menuTitle[64];
    formatex(menuTitlecharsmax(menuTitle), "\yWebailesi \rUnammo Menu");
    new menu menu_create(menuTitle"MenuHandler");
    menu_additem(menu"\rUnammo al \y(2 elde bir gecerli) \r2000 dolar karsiliginda");
    menu_display(idmenu0);
    return PLUGIN_HANDLED;
}

public 
MenuHandler(idmenuitem)
{
    menu_destroy(menu);

    if (item != 0)
        return PLUGIN_HANDLED;

    if (!is_user_alive(id) || !is_user_connected(id))
        return PLUGIN_HANDLED;

    if (g_LastUnammoRound[id] > 0)
    {
        ColorChat(id"%s Unammo hakkinizi ^3iki elde bir ^1kullanabilirsiniz."SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    new money cs_get_user_money(id);
    if (money 2000)
    {
        ColorChat(id"%s Yeterli paraniz yok. (^32000$ ^1gerekli)"SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    new weapon get_user_weapon(id);

    if (weapon <= CSW_KNIFE || weapon CSW_P90)
    {
        ColorChat(id"%s Elinizde ^3gecerli ^1bir silah yok!"SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    cs_set_user_money(idmoney 20001);
    SetFullAmmo(idweapon);
    g_LastUnammoRound[id] = 2;
    ColorChat(id"%s Silahinizin tum mermileri ^3yenilendi^1!"SUNUCU_TAG);
    return PLUGIN_HANDLED;
}

stock SetFullAmmo(idweapon)
{
    new maxClip 0maxAmmo 0;
    switch(weapon)
    {
        case CSW_P228:        maxClip 13maxAmmo 52; }
        case CSW_SCOUT:       maxClip 10maxAmmo 90; }
        case CSW_XM1014:      maxClip 7;  maxAmmo 32; }
        case CSW_MAC10:       maxClip 30maxAmmo 100; }
        case CSW_AUG:         maxClip 30maxAmmo 90; }
        case CSW_ELITE:       maxClip 30maxAmmo 120; }
        case CSW_FIVESEVEN:   maxClip 20maxAmmo 100; }
        case CSW_UMP45:       maxClip 25maxAmmo 100; }
        case CSW_SG550:       maxClip 30maxAmmo 90; }
        case CSW_GALI:        maxClip 35maxAmmo 90; }
        case CSW_FAMAS:       maxClip 25maxAmmo 90; }
        case CSW_USP:         maxClip 12maxAmmo 100; }
        case CSW_GLOCK18:     maxClip 20maxAmmo 120; }
        case CSW_AWP:         maxClip 10maxAmmo 30; }
        case CSW_MP5NAVY:     maxClip 30maxAmmo 120; }
        case CSW_M249:        maxClip 100maxAmmo 200; }
        case CSW_M3:          maxClip 8;  maxAmmo 32; }
        case CSW_M4A1:        maxClip 30maxAmmo 90; }
        case CSW_TMP:         maxClip 30maxAmmo 120; }
        case CSW_G3SG1:       maxClip 20maxAmmo 90; }
        case CSW_DEAGLE:      maxClip 7;  maxAmmo 35; }
        case CSW_SG552:       maxClip 30maxAmmo 90; }
        case CSW_AK47:        maxClip 30maxAmmo 90; }
        case CSW_P90:         maxClip 50maxAmmo 100; }
        default: return;
    }
    set_user_clip(idweaponmaxClip);
    cs_set_user_bpammo(idweaponmaxAmmo);
}

stock set_user_clip(idweaponamount)
{
    static const weapon_names[31][] = {
        """weapon_p228""weapon_shield""weapon_scou
t"
"weapon_hegrenade""weapon_xm1014",
        "weapon_c4""weapon_mac10""weapon_aug""weapon_smokegrenade""weapon_elite",
        "weapon_fiveseven""weapon_ump45""weapon_sg550""weapon_galil""weapon_famas",
        "weapon_usp""weapon_glock18""weapon_awp""weapon_mp5navy""weapon_m249",
        "weapon_m3""weapon_m4a1""weapon_tmp""weapon_g3sg1""weapon_flashbang",
        "weapon_deagle""weapon_sg552""weapon_ak47""weapon_knife""weapon_p90"
    };
    new weapon_ent = -1;
    for (new ent engfunc(EngFunc_FindEntityByString, -1"classname"weapon_names[weapon]);
         ent 0;
         ent engfunc(EngFunc_FindEntityByStringent"classname"weapon_names[weapon]))
    {
        if (pev(entpev_owner) == id)
        {
            weapon_ent ent;
            break;
        }
    }
    if (weapon_ent 0)
        set_pdata_int(weapon_ent51amount4);
}

stock ColorChat(id, const message[], any:...)
{
    new szMsg[192];
    vformat(szMsgcharsmax(szMsg), message3);
    new msgSayText get_user_msgid("SayText");
    message_begin(MSG_ONEmsgSayText, {0,0,0}, id);
    write_byte(id);
    write_string(szMsg);
    message_end();

Dener misin ?
✦ Discord: Osmanbnm ✦
#5
(10-09-2025, 19:24)yigitsq Adlı Kullanıcıdan Alıntı:
(10-09-2025, 19:01)yigitsq Adlı Kullanıcıdan Alıntı: /unammoal yazınca menu açılıcak şöyle

Webailesi - Unammo Menu

Unammo al (2elde bir geçerli) 2000 dolar karşılığuında

şeklinde
1757521065_takemoneyfromchatv2.sma(115) : error 017: undefined symbol "get_pdata_cbase"
1757521065_takemoneyfromchatv2.sma(117) : error 017: undefined symbol "set_pdata_int"
1757521065_takemoneyfromchatv2.sma(112) : warning 203: symbol is never used: "id"
hata veriyor pluginin adının farklı olduguna bakma kopyalayıp orraya attım
AMX Mod X Compiler 1.9.0.5271

1756718503_mic.sma(116) : error 037: invalid string (possibly non-terminated string)
1756718503_mic.sma(117) : warning 217: loose indentation
1756718503_mic.sma(117) : error 017: undefined symbol "t"
1756718503_mic.sma(117) : error 017: undefined symbol "weapon_hegrenade"
1756718503_mic.sma(117) : error 017: undefined symbol "weapon_xm1014"
1756718503_mic.sma(117) : fatal error 107: too many error messages on one line

Compilation aborted.
5 Errors.
Done.
#6
(10-09-2025, 19:32)yigitsq Adlı Kullanıcıdan Alıntı:
(10-09-2025, 19:24)yigitsq Adlı Kullanıcıdan Alıntı: 1757521065_takemoneyfromchatv2.sma(115) : error 017: undefined symbol "get_pdata_cbase"
1757521065_takemoneyfromchatv2.sma(117) : error 017: undefined symbol "set_pdata_int"
1757521065_takemoneyfromchatv2.sma(112) : warning 203: symbol is never used: "id"
hata veriyor pluginin adının farklı olduguna bakma kopyalayıp orraya attım
AMX Mod X Compiler 1.9.0.5271

1756718503_mic.sma(116) : error 037: invalid string (possibly non-terminated string)
1756718503_mic.sma(117) : warning 217: loose indentation
1756718503_mic.sma(117) : error 017: undefined symbol "t"
1756718503_mic.sma(117) : error 017: undefined symbol "weapon_hegrenade"
1756718503_mic.sma(117) : error 017: undefined symbol "weapon_xm1014"
1756718503_mic.sma(117) : fatal error 107: too many error messages on one line

Compilation aborted.
5 Errors.
Done.


Kod:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>

#define SUNUCU_TAG "^4[Webailesi]^1"
#define PLUGIN "Webailesi Unammo Menu"
#define VERSION "1.0"
#define AUTHOR "XhAs"

new g_LastUnammoRound[33];

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
    register_clcmd("say /unammoal", "CmdUnammoMenu");
    register_clcmd("say_team /unammoal", "CmdUnammoMenu");
    register_event("HLTV", "EventNewRound", "a", "1=0", "2=0");
}

public EventNewRound()
{
    for (new id = 1; id <= 32; id++)
        g_LastUnammoRound[id] = max(g_LastUnammoRound[id] - 1, 0);
}

public CmdUnammoMenu(id)
{
    if (!is_user_alive(id) || !is_user_connected(id))
        return PLUGIN_HANDLED;

    new menuTitle[64];
    formatex(menuTitle, charsmax(menuTitle), "\yWebailesi \rUnammo Menu");
    new menu = menu_create(menuTitle, "MenuHandler");
    menu_additem(menu, "\rUnammo al \y(2 elde bir gecerli) \r2000 dolar karsiliginda");
    menu_display(id, menu, 0);
    return PLUGIN_HANDLED;
}

public MenuHandler(id, menu, item)
{
    menu_destroy(menu);

    if (item != 0)
        return PLUGIN_HANDLED;

    if (!is_user_alive(id) || !is_user_connected(id))
        return PLUGIN_HANDLED;

    if (g_LastUnammoRound[id] > 0)
    {
        ColorChat(id, "%s Unammo hakkinizi ^3iki elde bir ^1kullanabilirsiniz.", SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    new money = cs_get_user_money(id);
    if (money < 2000)
    {
        ColorChat(id, "%s Yeterli paraniz yok. (^32000$ ^1gerekli)", SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    new weapon = get_user_weapon(id);

    if (weapon <= CSW_KNIFE || weapon > CSW_P90)
    {
        ColorChat(id, "%s Elinizde ^3gecerli ^1bir silah yok!", SUNUCU_TAG);
        return PLUGIN_HANDLED;
    }

    cs_set_user_money(id, money - 2000, 1);
    SetFullAmmo(id, weapon);
    g_LastUnammoRound[id] = 2;
    ColorChat(id, "%s Silahinizin tum mermileri ^3yenilendi^1!", SUNUCU_TAG);
    return PLUGIN_HANDLED;
}

stock SetFullAmmo(id, weapon)
{
    new maxClip = 0, maxAmmo = 0;
    switch(weapon)
    {
        case CSW_P228:        { maxClip = 13; maxAmmo = 52; }
        case CSW_SCOUT:       { maxClip = 10; maxAmmo = 90; }
        case CSW_XM1014:      { maxClip = 7;  maxAmmo = 32; }
        case CSW_MAC10:       { maxClip = 30; maxAmmo = 100; }
        case CSW_AUG:         { maxClip = 30; maxAmmo = 90; }
        case CSW_ELITE:       { maxClip = 30; maxAmmo = 120; }
        case CSW_FIVESEVEN:   { maxClip = 20; maxAmmo = 100; }
        case CSW_UMP45:       { maxClip = 25; maxAmmo = 100; }
        case CSW_SG550:       { maxClip = 30; maxAmmo = 90; }
        case CSW_GALI:        { maxClip = 35; maxAmmo = 90; }
        case CSW_FAMAS:       { maxClip = 25; maxAmmo = 90; }
        case CSW_USP:         { maxClip = 12; maxAmmo = 100; }
        case CSW_GLOCK18:     { maxClip = 20; maxAmmo = 120; }
        case CSW_AWP:         { maxClip = 10; maxAmmo = 30; }
        case CSW_MP5NAVY:     { maxClip = 30; maxAmmo = 120; }
        case CSW_M249:        { maxClip = 100; maxAmmo = 200; }
        case CSW_M3:          { maxClip = 8;  maxAmmo = 32; }
        case CSW_M4A1:        { maxClip = 30; maxAmmo = 90; }
        case CSW_TMP:         { maxClip = 30; maxAmmo = 120; }
        case CSW_G3SG1:       { maxClip = 20; maxAmmo = 90; }
        case CSW_DEAGLE:      { maxClip = 7;  maxAmmo = 35; }
        case CSW_SG552:       { maxClip = 30; maxAmmo = 90; }
        case CSW_AK47:        { maxClip = 30; maxAmmo = 90; }
        case CSW_P90:         { maxClip = 50; maxAmmo = 100; }
        default: return;
    }
    set_user_clip(id, weapon, maxClip);
    cs_set_user_bpammo(id, weapon, maxAmmo);
}

stock set_user_clip(id, weapon, amount)
{
    static const weapon_names[31][] = {
        "",
        "weapon_p228",
        "weapon_shield",
        "weapon_scout",
        "weapon_hegrenade",
        "weapon_xm1014",
        "weapon_c4",
        "weapon_mac10",
        "weapon_aug",
        "weapon_smokegrenade",
        "weapon_elite",
        "weapon_fiveseven",
        "weapon_ump45",
        "weapon_sg550",
        "weapon_galil",
        "weapon_famas",
        "weapon_usp",
        "weapon_glock18",
        "weapon_awp",
        "weapon_mp5navy",
        "weapon_m249",
        "weapon_m3",
        "weapon_m4a1",
        "weapon_tmp",
        "weapon_g3sg1",
        "weapon_flashbang",
        "weapon_deagle",
        "weapon_sg552",
        "weapon_ak47",
        "weapon_knife",
        "weapon_p90"
    };
    new weapon_ent = -1;
    for (new ent = engfunc(EngFunc_FindEntityByString, -1, "classname", weapon_names[weapon]);
         ent > 0;
         ent = engfunc(EngFunc_FindEntityByString, ent, "classname", weapon_names[weapon]))
    {
        if (pev(ent, pev_owner) == id)
        {
            weapon_ent = ent;
            break;
        }
    }
    if (weapon_ent > 0)
        set_pdata_int(weapon_ent, 51, amount, 4);
}

stock ColorChat(id, const message[], any:...)
{
    new szMsg[192];
    vformat(szMsg, charsmax(szMsg), message, 3);
    new msgSayText = get_user_msgid("SayText");
    message_begin(MSG_ONE, msgSayText, {0,0,0}, id);
    write_byte(id);
    write_string(szMsg);
    message_end();
}

✦ Discord: Osmanbnm ✦
#7
(10-09-2025, 19:32)yigitsq Adlı Kullanıcıdan Alıntı:
(10-09-2025, 19:24)yigitsq Adlı Kullanıcıdan Alıntı: 1757521065_takemoneyfromchatv2.sma(115) : error 017: undefined symbol "get_pdata_cbase"
1757521065_takemoneyfromchatv2.sma(117) : error 017: undefined symbol "set_pdata_int"
1757521065_takemoneyfromchatv2.sma(112) : warning 203: symbol is never used: "id"
hata veriyor pluginin adının farklı olduguna bakma kopyalayıp orraya attım
AMX Mod X Compiler 1.9.0.5271

1756718503_mic.sma(116) : error 037: invalid string (possibly non-terminated string)
1756718503_mic.sma(117) : warning 217: loose indentation
1756718503_mic.sma(117) : error 017: undefined symbol "t"
1756718503_mic.sma(117) : error 017: undefined symbol "weapon_hegrenade"
1756718503_mic.sma(117) : error 017: undefined symbol "weapon_xm1014"
1756718503_mic.sma(117) : fatal error 107: too many error messages on one line

Compilation aborted.
5 Errors.
Done.
bütün silahlarda elinizde geçerli silah yok diyo
#9
(10-09-2025, 21:36)osmanbnm Adlı Kullanıcıdan Alıntı: https://www.webailesi.com/ds-webailesi-16652.sma


dener misin tekrar.
merhaba dostum yaptığın eklentileri compile ederek hataları tesbit edebilirsin yoksa konu fazla uzayabilir
#10
(10-09-2025, 21:44)Merhabalarr Adlı Kullanıcıdan Alıntı:
(10-09-2025, 21:36)osmanbnm Adlı Kullanıcıdan Alıntı: https://www.webailesi.com/ds-webailesi-16652.sma


dener misin tekrar.
merhaba dostum yaptığın eklentileri compile ederek hataları tesbit edebilirsin yoksa konu fazla uzayabilir


Forumun amacı tartışmak zaten.
✦ Discord: Osmanbnm ✦

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

Yorum yapmak için üye olmanız gerekiyor

ya da
Task