Konu

#1
elimde bbmenü var ama yetkili menüyü userlerde kullanabiliyor yardımcı olurmusunuz
.sma bbmenu.sma (Dosya Boyutu: 42,91 KB | İndirme Sayısı: 5)
#2
(02-06-2024, 20:11)kadayıfekmek Adlı Kullanıcıdan Alıntı: elimde bbmenü var ama yetkili menüyü userlerde kullanabiliyor yardımcı olurmusunuz
  

menünün kontrollerinde bi sorun yok gibi görünüyor.Kullanamazlar sadece görebiliyorlar.
reCs:Go Rank Menu (%50)
#3
(02-06-2024, 21:09)bilalgecer47 Adlı Kullanıcıdan Alıntı:
(02-06-2024, 20:11)kadayıfekmek Adlı Kullanıcıdan Alıntı: elimde bbmenü var ama yetkili menüyü userlerde kullanabiliyor yardımcı olurmusunuz
  

menünün kontrollerinde bi sorun yok gibi görünüyor.Kullanamazlar sadece görebiliyorlar.
sorunsuz gözüküyor ama userlerde kullanabılıyo bi bakabilirmisin kendimde denedim
#4
Kod:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <basebuilder>
#include <cstrike>
#include <fun>
#include <engine>

/*Taglar  Burdan Ayarlay n*/
#define KISATAG "RG"
#define TAG "Redemption"

/* Yetkileri Burdan Ayarlay n */
#define SLOT_YETKI ADMIN_RESERVATION
#define ADMIN_YETKI ADMIN_KICK
#define VIP_YETKI ADMIN_MAP
#define ELIT_YETKI ADMIN_BAN
#define SUNUCU_SAHIBI_YETKI ADMIN_RCON

/* Silahlar n Hasarlar n  Burdan Ayarlay n*/

#define AK47_PALDIN_HASAR 2
#define CHARGER7_HASAR 2
#define GOLDEN_AWP_HASAR 4
#define THANATOS_M3_HASAR 3
#define THANATOS_M249_HASAR 2
#define VOLCANOMASTER_HASAR 2

#define fm_cs_set_weapon_ammo(%1,%2) set_pdata_int(%1, 51, %2, 4)

/*Modelleri Burdan Ayarlay n*/
new const V_AK47_PALADIN[] = "models/v_ak47_paladin.mdl"
new const P_AK47_PALADIN[] = "models/p_goldak.mdl"

new const V_CHARGER7[] = "models/v_charger5.mdl"
new const P_CHARGER7[] = "models/p_charger5.mdl"

new const V_GOLDEN_AWP[] = "models/v_blackdragon_awp.mdl"

new const V_THANATOS_M3[] = "models/v_thanatos_m3.mdl"
new const P_THANATOS_M3[] = "models/p_thanatos_m3.mdl"

new const V_THANATOS_M249[] = "models/v_thanatos_m249.mdl"
new const P_THANATOS_M249[] = "models/p_thanatos_m249.mdl"

new const V_VOLCANOMASTER[] = "models/v_xm1014_volcano.mdl"
new const P_VOLCANOMASTER[] = "models/p_xm1014.mdl"

enum _: SILAHLAR {
    g_ak47_paladin,
    g_charger7,
    g_golden_awp,
    g_thanatos_m3,
    g_thanatos_m249,
    g_volcanomaster
}
enum _: HASARLAR {
    ak47_hasar,
    charger_hasar,
    gold_awp_hasar,
    thanatos_hasar1,
    thanatos_hasar2,
    volcano_hasar
}
enum _: GOREVLER {
    gorev1,
    gorev2,
    gorev3,
    gorev4,
    gorev5,
    gorev6,
    gorev7,
    kaczombie,
    hpaldi,
    zombieoldu,
    silahaldi,
    gorevtamam1
}
new
g_silah[33] [SILAHLAR],
g_hasar[33] [HASARLAR],
g_gorev[33] [GOREVLER],
ctkiligi,g_kullandi[33],g_zipla[33],jumpnum[33],dojump[33],unammoacik[33]

const NOCLIP_WPN_BS = ((1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG)|(1<<CSW_KNIFE)|(1<<CSW_C4))
new const g_MaxClipAmmo[] = {
    0, 13, 0, 10, 0, 7, 0, 30, 30, 0, 15, 20, 25, 30, 35, 25, 12, 20,
    10, 30, 100, 8, 30, 30, 20, 0, 7, 30, 30, 0, 50
}

public plugin_init() {
    register_plugin("Gelismis BBmenu", "1.0","bRaLN")
    
    RegisterHam(Ham_TakeDamage, "player", "Hasarbraln")
    register_event("CurWeapon", "bralnWeapon", "be", "1=1")
    
    register_clcmd("say /bbmenu", "bbmenuac")
    register_clcmd("say_team /bbmenu", "bbmenuac")
    register_logevent("Event_RoundStart", 2, "1=Round_Start")
    register_event("CurWeapon", "braln_Weapon", "be", "1=1")
    
    register_clcmd("+moveup","ctgecir")
    /*-----------------------------*/
    /*Cvarlar*/
    /*-----------------------------*/
    ctkiligi = register_cvar("Ct_Kiligi_Acik","1") // 1 Acik 0 Kapali
}
public ctgecir(id) {
    if(g_gorev[id][gorevtamam1] == 1) {
        cs_set_user_team(id,2)
        ExecuteHamB(Ham_CS_RoundRespawn,id)
        g_gorev[id][gorevtamam1] = 0
        return PLUGIN_HANDLED
    }
    return 1;
}
public client_death(killer, victim, windex, hitplace, tk)
{
    if(get_user_team(victim) == 1) {
        g_gorev[killer][kaczombie]++
    }
}
public client_connect(id) {
    for( new idd; idd < SILAHLAR; idd++ ) {
        g_silah[id][idd] = 0
    }
    for( new di; di < HASARLAR; di++ ) {
        g_silah[id][di] = false
    }
    for( new b; b < GOREVLER; b++ ) {
        g_gorev[id][b] = 0
    }
    g_kullandi[id] = 0
    g_zipla[id] = false
    unammoacik[id] = false
}
public Event_RoundStart()
{
    for(new i; i < get_maxplayers(); i++){
        for( new id; id < SILAHLAR; id++ ) {
            g_silah[i][id] = 0
        }
        for( new di; di < HASARLAR; di++ ) {
            g_silah[i][di] = false
        }
        if(get_user_team(i) == 1) {
            g_gorev[i][zombieoldu] += 1
        }
        g_kullandi[i] = 0
        g_zipla[i] = false
        unammoacik[i] = false
    }
    
}
    
public plugin_precache() {
    precache_model("models/player/gign/gign.mdl")
    precache_model(V_AK47_PALADIN)
    precache_model(P_AK47_PALADIN)
    precache_model(V_CHARGER7)
    precache_model(P_CHARGER7)
    precache_model(V_GOLDEN_AWP)
    precache_model(V_THANATOS_M3)
    precache_model(P_THANATOS_M3)
    precache_model(V_THANATOS_M249)
    precache_model(P_THANATOS_M249)
    precache_model(V_VOLCANOMASTER)
    precache_model(P_VOLCANOMASTER)

}
public Hasarbraln(victim,inflictor,attacker,Float:damage,damage_type)
{

    if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_AK47 && g_hasar[attacker][ak47_hasar]){
        SetHamParamFloat(4,damage*AK47_PALDIN_HASAR)   
    }
    if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_AWP && g_hasar[attacker][gold_awp_hasar]){
        SetHamParamFloat(4,damage*GOLDEN_AWP_HASAR)   
    }
    if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_M3 && g_hasar[attacker][thanatos_hasar1]){
        SetHamParamFloat(4,damage*THANATOS_M3_HASAR)   
    }
    if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_M249 && g_hasar[attacker][thanatos_hasar2]){
        SetHamParamFloat(4,damage*THANATOS_M249_HASAR)   
    }
    if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_XM1014 && g_hasar[attacker][volcano_hasar]){
        SetHamParamFloat(4,damage*VOLCANOMASTER_HASAR)   
    }
    if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_M249 && g_hasar[attacker][charger_hasar]){
        SetHamParamFloat(4,damage*CHARGER7_HASAR)   
    }
}
public braln_Weapon(id) {
    if(unammoacik[id]){
        new iWeapon = read_data(2)
        if( !( NOCLIP_WPN_BS & (1<<iWeapon) ) )
        {
            fm_cs_set_weapon_ammo( get_pdata_cbase(id, 373) , g_MaxClipAmmo[ iWeapon ] )
        }
    }
}
public bralnWeapon(id) {
    new silahID = read_data(2);
    if(silahID == CSW_AK47) {
        if(g_silah[id][g_ak47_paladin] == 1)
        {
            set_pev(id,pev_viewmodel2,V_AK47_PALADIN)
            set_pev(id, pev_weaponmodel2, P_AK47_PALADIN)    
        }
    }
    if(silahID == CSW_AWP) {
        if(g_silah[id][g_golden_awp] == 1)
        {
            set_pev(id,pev_viewmodel2,V_GOLDEN_AWP)
        }
    }
    if(silahID == CSW_M3) {
        if(g_silah[id][g_thanatos_m3] == 1)
        {
            set_pev(id,pev_viewmodel2,V_THANATOS_M3)
            set_pev(id, pev_weaponmodel2, P_THANATOS_M3)    
        }
    }
    if(silahID == CSW_M249) {
        if(g_silah[id][g_thanatos_m249] == 1)
        {
            set_pev(id,pev_viewmodel2,V_THANATOS_M249)
            set_pev(id, pev_weaponmodel2, P_THANATOS_M249)    
        }
        if(g_silah[id][g_charger7] == 1)
        {
            set_pev(id,pev_viewmodel2,V_CHARGER7)
            set_pev(id, pev_weaponmodel2, P_CHARGER7)    
        }
    }
    if(silahID == CSW_XM1014) {
        if(g_silah[id][g_volcanomaster] == 1)
        {
            set_pev(id,pev_viewmodel2,V_VOLCANOMASTER)
            set_pev(id, pev_weaponmodel2, P_VOLCANOMASTER)    
        }
    }
}
public client_PreThink(id)
{
    if(!is_user_alive(id)) return PLUGIN_CONTINUE
    new nbut = get_user_button(id)
    new obut = get_user_oldbutton(id)
    if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP) && g_zipla[id])
    {
        if(jumpnum[id] < 1)
        {
            dojump[id] = true
            jumpnum[id]++
            return PLUGIN_CONTINUE
        }
    }
    if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
    {
        jumpnum[id] = 0
        return PLUGIN_CONTINUE
    }
    return PLUGIN_CONTINUE
}

public client_PostThink(id)
{
    if(!is_user_alive(id)) return PLUGIN_CONTINUE
    if(dojump[id])
    {
        new Float:velocity[3]    
        entity_get_vector(id,EV_VEC_velocity,velocity)
        velocity[2] = random_float(265.0,285.0)
        entity_set_vector(id,EV_VEC_velocity,velocity)
        dojump[id] = false
        return PLUGIN_CONTINUE
    }
    return PLUGIN_CONTINUE
    
}
public bbmenuac(id) {
    static Item[128]

    formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \r~ Basebuilder ~^n\wServer Ip\d[\w95.173.174.\r44\d]",TAG)
    new Menu = menu_create(Item, "bbmenuac_devam")
    
    formatex(Item, charsmax(Item),"\r[\dRecemption\r] \d~> \wHP Shop")
    menu_additem(Menu, Item, "1")

    formatex(Item, charsmax(Item),"\r[\dRecemption\r] \d~> \wSilah Shop")
    menu_additem(Menu, Item, "2")

    formatex(Item, charsmax(Item),"\r[\dRecemption\r] \d~> \wGorev Menu")
    menu_additem(Menu, Item, "4")

    formatex(Item, charsmax(Item),"\r[\dRecemption\r] \d~> \wExtralar^n")
    menu_additem(Menu, Item, "5")
    
    formatex(Item, charsmax(Item),"\r[\dRecemption\r] \d~> \wYetkili Menu^n")
    menu_additem(Menu, Item, "3")

    formatex(Item, charsmax(Item),"\r[\dRecemption\r] \d~> \rZombie Shop")
    menu_additem(Menu, Item, "6")

    menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
    menu_display(id, Menu,0)

}
public bbmenuac_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(get_user_team(id) == 2) {
                hpshopct(id)
            }
            if(get_user_team(id) == 1) {
                hpshopt(id)
            }
        }
        case 2:{
            if(get_user_team(id) == 2) {
                silahshop(id)
            }
            else {
                client_printc(id,"!gBuraya Girmek Icin Human Olman Gerekiyor")
            }
        }
        case 3:{
            yetkilimenu(id)
        }
        case 4:{
            gorevmenu(id)
        }
        case 5:{
            if(get_user_team(id) == 2) {
                esyalar(id)
            }
            else {
                client_printc(id,"!gBuraya Girmek Icin Human Olman Gerekiyor")
            }
        }
        case 6:{
            if(get_user_team(id) == 1) {
                zombieshopa(id)
            }
            else {
                client_printc(id,"!gBu Menuye Sadece !tZombiler !gGirebilir!")
            }
        }
    }
    return PLUGIN_HANDLED
}
public esyalar(id) {
    static Item[128]

    formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rEsyalar",TAG)
    new Menu = menu_create(Item, "esyalar_devam")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w20 Sn. God \d[6000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "1")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wSınırsız Unammo \d[7000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "2")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w3'lü Bomba Paketi \d[3000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "3")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wMulti Jump \d[10000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "4")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wEk 3 Silah Daha \d[9000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "5")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wSınırsız Armor \d[6000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "6")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCT'den Birini Yanina Isinla \d[16000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "7")

    menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
    menu_display(id, Menu,0)

}
public esyalar_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(cs_get_user_money(id) >= 6000) {
                cs_set_user_money(id,cs_get_user_money(id) - 6000)
                set_user_godmode(id,1)
                set_task(20.0,"godkapat",id)
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!t20 Sn. God!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 2:{
            if(cs_get_user_money(id) >= 6000) {
                cs_set_user_money(id,cs_get_user_money(id) - 7000)
                unammoacik[id] = true
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!tSınırsız Unammo!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 3:{
            if(cs_get_user_money(id) >= 3000) {
                cs_set_user_money(id,cs_get_user_money(id) - 3000)
                give_item(id,"weapon_hegreande")
                give_item(id,"weapon_flashbang")
                give_item(id,"weapon_smokegrenade")
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!t3'lü Bomba Baketi!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 4:{
            if(cs_get_user_money(id) >= 10000) {
                cs_set_user_money(id,cs_get_user_money(id) - 10000)
                g_zipla[id] = true
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!tMulti Jump!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 5:{
            if(cs_get_user_money(id) >= 9000) {
                cs_set_user_money(id,cs_get_user_money(id) - 9000)
                give_item(id,"weapon_m3")
                give_item(id,"weapon_xm1014")
                give_item(id,"weapon_m249")
                cs_set_user_bpammo(id,CSW_M3,99999)
                cs_set_user_bpammo(id,CSW_XM1014,999999)
                cs_set_user_bpammo(id,CSW_M249,99999999)
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!tEk 3 Silah Daha!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 6:{
            if(cs_get_user_money(id) >= 6000) {
                cs_set_user_money(id,cs_get_user_money(id) - 6000)
                set_user_armor(id,get_user_armor(id) + 9999999999)
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!tSınırsız Armor!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 7:{
            if(cs_get_user_money(id) >= 6000) {
                cs_set_user_money(id,cs_get_user_money(id) - 6000)
                isinla(id)
                client_printc(id,"!n[ !g%s !n] !nEslayardan [!tCT'den Birini Yanina Isinla!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
    }
    return PLUGIN_HANDLED
}
public isinla(id)
{
    new name[32],inum[6]
    if(get_user_team(id) == 2)
    {
        new menu = menu_create("\d{- \ySecdigin CT'yi Yanina Isinla \d-}","isinla_devam")
        for(new i = 1;i<=get_maxplayers();i++)
            if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
        {
            num_to_str(i,inum,5)
            get_user_name(i,name,31)
            menu_additem(menu,name,inum)
        }
        menu_display(id,menu, 0)    
    }
    return PLUGIN_HANDLED
}        
public isinla_devam(id,menu,item)
{
    if(item == MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
    new access,callback,data[6],iname[32]
    menu_item_getinfo(menu,item,access,data,5,iname,31,callback)
    
    new isim[32]
    new tid = str_to_num(data)
    get_user_name(id,iname,31)
    get_user_name(tid,isim,31)
    new Float:szOrigin[3]
    pev(id,pev_origin,szOrigin)
    szOrigin[0] += 40
    set_pev(tid,pev_origin,szOrigin)
    client_printc(0,"!n[!g%s!n] !tAdli Kisi !n[!g%s!n] !tAdli Kisiyi Dolar Ile Yanina Isinladi.",iname,isim)
    return PLUGIN_HANDLED;
}
public gorevmenu(id) {
    static Item[128]

    formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rGorev Menu",TAG)
    new Menu = menu_create(Item, "gorevmenu_devam")
    if(g_gorev[id][gorev1] == 0 && g_gorev[id][kaczombie] < 5) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Zombi Oldur \d[%i/5] ",KISATAG,g_gorev[id][kaczombie])
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev1] == 0 && g_gorev[id][kaczombie] >= 5) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Zombi Oldur \d[Odulunu Al] ",KISATAG)
        menu_additem(Menu, Item, "1")
    }
    if(g_gorev[id][gorev1] == 1) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Zombi Oldur \d[Odulunu Aldin] ",KISATAG)
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev2] == 0 && g_gorev[id][hpaldi] == 0) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wHp Shoptan 100 Hp Al",KISATAG)
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev2] == 0 && g_gorev[id][hpaldi] == 1){
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wHp Shoptan 100 Hp Al \d[Odulunu Al]",KISATAG)
        menu_additem(Menu, Item, "2")
    }
    if(g_gorev[id][gorev2] == 1 && g_gorev[id][hpaldi] == 1){
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wHp Shoptan 100 Hp Al \d[Odulunu Alidn]",KISATAG)
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev3] == 0 && g_gorev[id][zombieoldu] < 5) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Kez Zombie Ol \d[%i/5] ",KISATAG,g_gorev[id][zombieoldu])
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev3] == 0 && g_gorev[id][zombieoldu] >= 5) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Kez Zombie Ol \d[Odulunu Al] ",KISATAG)
        menu_additem(Menu, Item, "3")
    }
    if(g_gorev[id][gorev3] == 1) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Kez Zombie Ol \d[Odulunu Aldin] ",KISATAG)
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev4] == 0 && g_gorev[id][silahaldi] == 0) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wSilah Shoptan Silah Al",KISATAG)
        menu_additem(Menu, Item, "99")
    }
    if(g_gorev[id][gorev4] == 0 && g_gorev[id][silahaldi] == 1) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wSilah Shoptan Silah Al \d[Odulunu Al]",KISATAG)
        menu_additem(Menu, Item, "4")
    }
    if(g_gorev[id][gorev4] == 1) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wSilah Shoptan Silah Al \d[Odulunu Aldin]",KISATAG)
        menu_additem(Menu, Item, "99")
    }
        
    menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
    menu_display(id, Menu,0)

}
public gorevmenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            g_hasar[id][charger_hasar] = true
            g_silah[id][g_charger7] = 1        
            give_item(id,"weapon_m249")
            cs_set_user_bpammo(id,CSW_M249,99999)
            g_gorev[id][gorev1] = 1
            gorevmenu(id)
            client_printc(id,"!n[ !g%s !n] !nGorevMenuden [!tCharger7!n] !nKazandin !",TAG)
        }
        case 2:{
            g_gorev[id][gorev2] = 1
            gorevmenu(id)
            set_user_health(id,get_user_health(id) + 200)
            client_printc(id,"!n[ !g%s !n] !nGorevMenuden [!t200 Hp!n] !nKazandin !",TAG)
        }
        case 3:{
            g_gorev[id][gorev3] = 1
            g_gorev[id][gorevtamam1] = 1
            gorevmenu(id)
            client_printc(id,"!n[ !g%s !n] !nGorevMenuden [!tCt Olma Hakki!n] !nKazandin !",TAG)
            client_printc(id,"!gV Tusuna Basark Hakkini Kullanabilirsin")
        }
        case 4:{
            g_gorev[id][gorev4] = 1
            gorevmenu(id)
            cs_set_user_money(id, cs_get_user_money(id) + 10000)
            client_printc(id,"!n[ !g%s !n] !nGorevMenuden [!t10.000 Dolar!n] !nKazandin !",TAG)
        }
        case 99:{
            gorevmenu(id)
        }
    }
    return PLUGIN_HANDLED
}
public yetkilimenu(id) {
    if(g_kullandi[id] == 0) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rYetkili Menu",TAG)
        new Menu = menu_create(Item, "yetkilimenu_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wSlot Menu",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wAdmin Menu",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wVIP Menu",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wElit Menu",KISATAG)
        menu_additem(Menu, Item, "4")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wKurucu Ozel Bonus",KISATAG)
        menu_additem(Menu, Item, "5")
    
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }
    else {
        client_printc(id,"!gBurayi Her El !t1 Kez !gKullanabilirsin.")
    }
    return 1;
}
public yetkilimenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            slotmenu(id)
        }
        case 2:{
            adminmenu(id)
        }
        case 3:{
            vipmenu(id)
        }
        case 4:{
            elitmenu(id)
        }
        case 5:{
            sunucusahibimenu(id)
        }
    }
    return PLUGIN_HANDLED
}
public sunucusahibimenu(id) {
    if(g_kullandi[id] == 1) {
        client_printc(id,"!gBurayi Her El !t1 Kez !gKullanabilirsin.")
        return PLUGIN_HANDLED
    }
    if(get_user_flags(id) & ELIT_YETKI) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rSunucu Sahibi Menu^n\dHer El \r1 Kez \dGirebilirsin",TAG)
        new Menu = menu_create(Item, "sunucusahibimenu_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w150 Hp",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w900 Armor",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wHizini 350 Arttir",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCift Ziplama",KISATAG)
        menu_additem(Menu, Item, "4")
        
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wGravity 500",KISATAG)
        menu_additem(Menu, Item, "5")
        
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5 Sn Dokunulmazlik",KISATAG)
        menu_additem(Menu, Item, "6")
        
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w10000 Dolar",KISATAG)
        menu_additem(Menu, Item, "7")
        
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }
    else {
        client_printc(id,"!gBuraya Sadece !tElitler !gGirebilir.")
    }
    return 1;

}
public sunucusahibimenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            g_kullandi[id] = 1
            set_user_health(id , get_user_health(id) + 150)
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !t150 Health !nAldin !",TAG)
        }
        case 2:{
            g_kullandi[id] = 1
            set_user_armor(id ,get_user_armor(id) + 900)
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !t900 Armor !nAldin !",TAG)
        }
        case 3:{
            g_kullandi[id] = 1
            set_user_maxspeed(id ,get_user_maxspeed(id) + 350)
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !t350 Speed !nAldin !",TAG)
        }
        case 4:{
            g_kullandi[id] = 1
            g_zipla[id] = true
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !tCift Ziplama !nAldin !",TAG)
        }
        case 5:{
            g_kullandi[id] = 1
            set_user_gravity(id,500.0)
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !t500 Gravity !nAldin !",TAG)
        }
        case 6:{
            g_kullandi[id] = 1
            set_user_godmode(id,1)
            set_task(5.0,"godkapat",id)
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !t5 Sn. Dokunulmazlik !nAldin !",TAG)
        }
        case 7:{
            g_kullandi[id] = 1
            cs_set_user_money(id,1)
            cs_set_user_money(id, cs_get_user_money(id) + 10000)
            client_printc(id,"!n[ !g%s !n] !nSunucuSahibiMenuden !t10000 Dolar !nAldin !",TAG)
        }
    }
    return PLUGIN_HANDLED
}
public noclipkapat(id) {
    set_user_noclip(id,0)
    client_printc(id,"!gNoclip Kapandi")
}
public elitmenu(id) {
    if(g_kullandi[id] == 1) {
        client_printc(id,"!gBurayi Her El !t1 Kez !gKullanabilirsin.")
        return PLUGIN_HANDLED
    }
    if(get_user_flags(id) & ELIT_YETKI) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rY netici Menu^n\dHer El \r1 Kez \dGirebilirsin",TAG)
        new Menu = menu_create(Item, "elitmenu_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w125 Hp",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w800 Armor",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w10000 Dolar",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCift Ziplama",KISATAG)
        menu_additem(Menu, Item, "4")
        
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wGravity 700",KISATAG)
        menu_additem(Menu, Item, "5")
        
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w4 Sn. God",KISATAG)
        menu_additem(Menu, Item, "6")
        
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }
    else {
        client_printc(id,"!gBuraya Sadece !nYoneticiler !gGirebilir.")
    }
    return 1;

}
public elitmenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            g_kullandi[id] = 1
            set_user_health(id , get_user_health(id) + 125)
            client_printc(id,"!n[ !g%s !n] !nYonetici Menuden !t125 Health !nAldin !",TAG)
        }
        case 2:{
            g_kullandi[id] = 1
            set_user_armor(id ,get_user_armor(id) + 800)
            client_printc(id,"!n[ !g%s !n] !nYonetici Menuden !t800 Armor !nAldin !",TAG)
        }
        case 3:{
            g_kullandi[id] = 1
            cs_set_user_money(id, cs_get_user_money(id) + 10000)
            client_printc(id,"!n[ !g%s !n] !nYonetici Menuden !t10000 Dolar !nAldin !",TAG)
        }
        case 4:{
            g_kullandi[id] = 1
            g_zipla[id] = true
            client_printc(id,"!n[ !g%s !n] !nYonetici Menuden !tCift Ziplama !nAldin !",TAG)
        }
        case 5:{
            g_kullandi[id] = 1
            set_user_gravity(id,700.0)
            client_printc(id,"!n[ !g%s !n] !nYonetici Menuden !t700 Gravity !nAldin !",TAG)
        }
        case 6:{
            g_kullandi[id] = 1
            set_user_godmode(id,1)
            set_task(4.0,"godkapat",id)
            client_printc(id,"!n[ !g%s !n] !nYonetici Menuden !t3 Sn. God !nAldin !",TAG)
        }
    }
    return PLUGIN_HANDLED
}
public godkapat(id) {
    set_user_godmode(id,0)
    client_printc(id,"!gGodun Suresi Bitti")
}
public vipmenu(id) {
    if(g_kullandi[id] == 1) {
        client_printc(id,"!gBurayi Her El !t1 Kez !gKullanabilirsin.")
        return PLUGIN_HANDLED
    }
    if(get_user_flags(id) & VIP_YETKI) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rVip Menu^n\dHer El \r1 Kez \dGirebilirsin",TAG)
        new Menu = menu_create(Item, "vipmenu_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w100 Hp",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w650 Armor",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w+350 hiz",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCift Ziplama",KISATAG)
        menu_additem(Menu, Item, "4")
        
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w6000 Dolar",KISATAG)
        menu_additem(Menu, Item, "5")
        
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }
    else {
        client_printc(id,"!gBuraya Sadece !tVipler !gGirebilir.")
    }
    return 1;

}
public vipmenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            g_kullandi[id] = 1
            set_user_health(id , get_user_health(id) + 100)
            client_printc(id,"!n[ !g%s !n] !nVipMenuden !t100 Health !nAldin !",TAG)
        }
        case 2:{
            g_kullandi[id] = 1
            set_user_armor(id ,get_user_armor(id) + 650)
            client_printc(id,"!n[ !g%s !n] !nVipMenuden !t650 Armor !nAldin !",TAG)
        }
        case 3:{
            g_kullandi[id] = 1
            set_user_maxspeed(id ,get_user_maxspeed(id) + 350)
            client_printc(id,"!n[ !g%s !n] !nVipMenuden !t350 Speed !nAldin !",TAG)
        }
        case 4:{
            g_kullandi[id] = 1
            g_zipla[id] = true
            client_printc(id,"!n[ !g%s !n] !nVipMenuden !tCift Ziplama !nAldin !",TAG)
        }
        case 5:{
            g_kullandi[id] = 1
            cs_set_user_money(id,1)
            cs_set_user_money(id, cs_get_user_money(id) + 6000)
            client_printc(id,"!n[ !g%s !n] !nVipMenuden !t6000 Dolar !nAldin !",TAG)
        }
    }
    return PLUGIN_HANDLED
}
public adminmenu(id) {
    if(g_kullandi[id] == 1) {
        client_printc(id,"!gBurayi Her El !t1 Kez !gKullanabilirsin.")
        return PLUGIN_HANDLED
    }
    if(get_user_flags(id) & ADMIN_YETKI) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rAdmin Menu^n\dHer El \r1 Kez \dGirebilirsin",TAG)
        new Menu = menu_create(Item, "adminmenu_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w300 Hp",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w600 Armor",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w5000 Dolar",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCift Ziplama",KISATAG)
        menu_additem(Menu, Item, "4")
    
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }
    else {
        client_printc(id,"!gBuraya Sadece !tAdminler !gGirebilir.")
    }
    return 1;

}
public adminmenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            g_kullandi[id] = 1
            set_user_health(id , get_user_health(id) + 75)
            client_printc(id,"!n[ !g%s !n] !nAdminMenuden !t75 Health !nAldin !",TAG)
        }
        case 2:{
            g_kullandi[id] = 1
            set_user_armor(id ,get_user_armor(id) + 600)
            client_printc(id,"!n[ !g%s !n] !nAdminMenuden !t600 Armor !nAldin !",TAG)
        }
        case 3:{
            g_kullandi[id] = 1
            cs_set_user_money(id,1)
            cs_set_user_money(id, cs_get_user_money(id) + 5000)
            client_printc(id,"!n[ !g%s !n] !nAdminMenuden !t5000 Dolar !nAldin !",TAG)
        }
        case 4:{
            g_kullandi[id] = 1
            g_zipla[id] = true
            client_printc(id,"!n[ !g%s !n] !nAdminMenuden !tCift Ziplama !nAldin !",TAG)
        }
    }
    return PLUGIN_HANDLED
}
public slotmenu(id) {
    if(g_kullandi[id] == 1) {
        client_printc(id,"!gBurayi Her El !t1 Kez !gKullanabilirsin.")
        return PLUGIN_HANDLED
    }
    if(get_user_flags(id) & SLOT_YETKI) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rSlot Menu^n\dHer El \r1 Kez \dGirebilirsin",TAG)
        new Menu = menu_create(Item, "slotmenu_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w50 Hp",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w500 Armor",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w4000 Dolar",KISATAG)
        menu_additem(Menu, Item, "3")
    
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }
    else {
        client_printc(id,"!gBuraya Sadece !tSlotlar !gGirebilir.")
    }
    return 1;

}
public slotmenu_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            g_kullandi[id] = 1
            set_user_health(id , get_user_health(id) + 50)
            client_printc(id,"!n[ !g%s !n] !nBBmenuden !t50 Health !nAldin !",TAG)
        }
        case 2:{
            g_kullandi[id] = 1
            set_user_armor(id ,get_user_armor(id) + 500)
            client_printc(id,"!n[ !g%s !n] !nBBmenuden !t500 Armor !nAldin !",TAG)
        }
        case 3:{
            g_kullandi[id] = 1
            cs_set_user_money(id,1)
            cs_set_user_money(id, cs_get_user_money(id) + 4000)
            client_printc(id,"!n[ !g%s !n] !nBBmenuden !t4000 Dolar !nAldin !",TAG)
        }
    }
    return PLUGIN_HANDLED
}
public hpshopt(id) {
    if(get_user_team(id) == 1){
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rZombie Hp Shop",TAG)
        new Menu = menu_create(Item, "hpshopt_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w1000 Hp \d[2000 Dolar] ",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w2000 Hp \d[4000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w3000 Hp \d[6000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w4000 Hp \d[8000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "4")
        
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
    }

}
public hpshopt_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(cs_get_user_money(id) >= 2000) {
                cs_set_user_money(id, cs_get_user_money(id) - 2000)
                set_user_health(id, get_user_health(id) + 1000)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden !t1000 Health !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        
        }
        case 2:{
            if(cs_get_user_money(id) >= 4000) {
                cs_set_user_money(id, cs_get_user_money(id) - 4000)
                set_user_health(id, get_user_health(id) + 2000)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden !t2000 Health !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        

        }
        case 3:{
            if(cs_get_user_money(id) >= 6000) {
                cs_set_user_money(id, cs_get_user_money(id) - 6000)
                set_user_health(id, get_user_health(id) + 3000)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden !t3000 Health !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        
        }
        case 4:{
            if(cs_get_user_money(id) >= 8000) {
                cs_set_user_money(id, cs_get_user_money(id) - 8000)
                set_user_health(id, get_user_health(id) + 4000)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden !t4000 Health !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        
        }
    }
    return PLUGIN_HANDLED
}
public hpshopct(id) {
        static Item[128]
    
        formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rHuman Hp Shop",TAG)
        new Menu = menu_create(Item, "hpshopct_devam")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w100 Hp \d[2000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "1")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w200 Hp \d[4000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "2")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w300 Hp \d[6000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "3")
    
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w400 Hp \d[8000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "4")
        
        menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
        menu_display(id, Menu,0)
}
public hpshopct_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(cs_get_user_money(id) >= 2000) {
                cs_set_user_money(id, cs_get_user_money(id) - 2000)
                set_user_health(id, get_user_health(id) + 100)
                g_gorev[id][hpaldi] = 1
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!t100 Health] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        
        }
        case 2:{
            if(cs_get_user_money(id) >= 4000) {
                cs_set_user_money(id, cs_get_user_money(id) - 4000)
                set_user_health(id, get_user_health(id) + 200)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!t200 Health] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        

        }
        case 3:{
            if(cs_get_user_money(id) >= 6000) {
                cs_set_user_money(id, cs_get_user_money(id) - 6000)
                set_user_health(id, get_user_health(id) + 3000)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!t300 Health] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        
        }
        case 4:{
            if(cs_get_user_money(id) >= 8000) {
                cs_set_user_money(id, cs_get_user_money(id) - 8000)
                set_user_health(id, get_user_health(id) + 400)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!t400 Health] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok!")
            }        
        }
    }
    return PLUGIN_HANDLED
}
public silahshop(id) {
    static Item[128]

    formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rSilah Shop",TAG)
    new Menu = menu_create(Item, "silahshop_devam")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wAk47 Paladin \d[10000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "1")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wAwp Golden \d[10000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "2")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wThanatos M3 \d[10000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "3")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wThanatos M249 \d[12000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "4")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCharger7 \d[10000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "5")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wVolcano Master \d[12000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "6")

    menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
    menu_display(id, Menu,0)

}
public silahshop_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(cs_get_user_money(id) >= 10000) {
                cs_set_user_money(id,cs_get_user_money(id) - 10000)
                g_gorev[id][silahaldi] = 1
                g_hasar[id][ak47_hasar] = true
                g_silah[id][g_ak47_paladin] = 1    
                give_item(id,"weapon_ak47")
                cs_set_user_bpammo(id,CSW_AK47,99999)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tAk47 Paladin!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 2:{
            if(cs_get_user_money(id) >= 10000) {
                cs_set_user_money(id,cs_get_user_money(id) - 10000)
                g_gorev[id][silahaldi] = 1
                g_hasar[id][gold_awp_hasar] = true
                g_silah[id][g_golden_awp] = 1        
                give_item(id,"weapon_awp")
                cs_set_user_bpammo(id,CSW_AWP,99999)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tGolden Awp!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 3:{
            if(cs_get_user_money(id) >= 8000) {
                cs_set_user_money(id,cs_get_user_money(id) - 12000)
                g_gorev[id][silahaldi] = 1
                g_hasar[id][thanatos_hasar1] = true
                g_silah[id][g_thanatos_m3] = 1        
                give_item(id,"weapon_m3")
                cs_set_user_bpammo(id,CSW_M3,99999)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tThanatos M3!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 4:{
            if(cs_get_user_money(id) >= 5000) {
                cs_set_user_money(id,cs_get_user_money(id) - 12000)
                g_gorev[id][silahaldi] = 1
                g_hasar[id][thanatos_hasar2] = true
                g_silah[id][g_thanatos_m249] = 1        
                give_item(id,"weapon_m249")
                cs_set_user_bpammo(id,CSW_M249,99999)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tThanatos M249!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 5:{
            if(cs_get_user_money(id) >= 6200) {
                cs_set_user_money(id,cs_get_user_money(id) - 10000)
                g_gorev[id][silahaldi] = 1
                g_hasar[id][charger_hasar] = true
                g_silah[id][g_charger7] = 1        
                give_item(id,"weapon_m249")
                cs_set_user_bpammo(id,CSW_M249,99999)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tCharger7!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 6:{
            if(cs_get_user_money(id) >= 6800) {
                cs_set_user_money(id,cs_get_user_money(id) - 12000)
                g_gorev[id][silahaldi] = 1
                g_hasar[id][volcano_hasar] = true
                g_silah[id][g_volcanomaster] = 1        
                give_item(id,"weapon_xm1014")
                cs_set_user_bpammo(id,CSW_XM1014,99999)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tVolcanoMaster!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
    }
    return PLUGIN_HANDLED
}
public zombieshopa(id) {
    static Item[128]

    formatex(Item, charsmax(Item),"\d[ - \r%s \d- ] \rZombie Shop",TAG)
    new Menu = menu_create(Item, "zombieshopa_devam")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCT Gec \d[16000 Dolar](Respawn Atar)",KISATAG)
    menu_additem(Menu, Item, "1")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \w1000 Armor Al \d[10000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "2")

    formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wHizini 200 Arttir \d[7000 Dolar]",KISATAG)
    menu_additem(Menu, Item, "4")
    if(get_pcvar_num(ctkiligi) == 1) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCT Kiligina Gir \d[16000 Dolar]",KISATAG)
        menu_additem(Menu, Item, "5")
    }
    if(get_pcvar_num(ctkiligi) == 0) {
        formatex(Item, charsmax(Item),"\d[- \r%s \d-] \wCT Kiligina Gir \d[Kapali]",KISATAG)
        menu_additem(Menu, Item, "99")
    }

    menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
    menu_display(id, Menu,0)

}
public zombieshopa_devam(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(cs_get_user_money(id) >= 16000) {
                cs_set_user_money(id, cs_get_user_money(id) - 16000)
                cs_set_user_team(id,2)
                ExecuteHamB(Ham_CS_RoundRespawn,id)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tCt Gec!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 2:{
            if(cs_get_user_money(id) >= 10000) {
                cs_set_user_money(id, cs_get_user_money(id) - 10000)
                set_user_armor(id,get_user_armor(id) + 1000)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!t1000 Armor!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 4:{
            if(cs_get_user_money(id) >= 7000) {
                cs_set_user_money(id, cs_get_user_money(id) - 7000)
                set_user_maxspeed(id, get_user_maxspeed(id) + 200)
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!t200 Hiz Daha!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 5:{
            if(cs_get_user_money(id) >= 16000) {
                cs_set_user_money(id, cs_get_user_money(id) - 16000)
                cs_set_user_model(id,"gign")
                client_printc(id,"!n[ !g%s !n] !nBBmenuden [!tCT Kiligina Girme!n] !nAldin !",TAG)
            }
            else {
                client_printc(id,"!gYeterli Paran Yok")
            }
        }
        case 99:{
            zombieshopa(id)
            client_printc(id,"!gLen Kapali Bura!")
        }
    }
    return PLUGIN_HANDLED
}
stock client_printc(const id, const input[], any:...)
{
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);
    
    replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sar )
    replace_all(msg, 190, "!g", "^x04"); // Ye il Renk
    replace_all(msg, 190, "!t", "^x03"); // Tak m Renk( CT mavi , T k rm z  )
    
    if (id) players[0] = id; else get_players(players, count, "ch");
    {
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players[i]))
            {
                
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
                write_byte(players[i]);
                write_string(msg);
                message_end();
            }

        }
    }
}
stock ham_strip_weapon(id,weapon[])
{
    if(!equal(weapon,"weapon_",7)) return 0;
    
    new wId = get_weaponid(weapon);
    if(!wId) return 0;
        
    new wEnt;
    while((wEnt = engfunc(EngFunc_FindEntityByString,wEnt,"classname",weapon)) && pev(wEnt,pev_owner) != id) {}
    if(!wEnt) return 0;
    
    if(get_user_weapon(id) == wId) ExecuteHamB(Ham_Weapon_RetireWeapon,wEnt);
    
    if(!ExecuteHamB(Ham_RemovePlayerItem,id,wEnt)) return 0;
    ExecuteHamB(Ham_Item_Kill,wEnt);
        
    set_pev(id,pev_weapons,pev(id,pev_weapons) & ~(1<<wId));
    
    return 1;
}

reCs:Go Rank Menu (%50)
#5
İstek konusu, @bilalgecer47 adlı kullanıcı tarafından 16 saat içinde çözülmüştür.
İsteği çözdüğü için bilalgecer47 Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
bilalgecer47 Adlı kullanıcı sizin dışınızda toplam 129 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
Task
Kayıt Ol
Discord Adresimize Katılın