Reklam gösterimini engelleyici yazılım kullandığınızı görüyoruz.
Sitemizin ayakta kalıp sizlere hizmet edebilmek için en büyük gelir kaynağı sayfamızda gösterilen reklamlardır.
Reklam gösterimde bizim sayfamıza ayrıcalık tanıyarak ayakta kalmamıza destek olmak ister misiniz ?

lr jaile ayarlancak

Konu

#1
Son Düzenleme: 17-02-2019, Saat: 18:32, Düzenleyen: akSakaLLı..
sadece jailde calisacak sekilde ayarlayabilirmisiniz?


.sma lrmenuv3.sma (Dosya Boyutu: 29.2 KB | İndirme Sayısı: 2)
#2
Kolay Gelsin :d


---------------------------------------------
Turkiyem Ceo
---------------------------------------------
#3
güncel


#4
Buyur.
Kod:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>


#define PLUGIN "Sureli LR"
#define VERSION "1.0"
#define AUTHOR "LexeR"

#define VSZAMAN 45

/*================================================================================
Variables | bools | Cvars        
=================================================================================*/
new HamHook:ForwardSecAttackScout;
new ForwardsEnabled;

new duelzaman;

new bool:g_aimpracon = false

new g_maxPlayers, g_msgSayText, beacon_sprite

new cvar_scout_bpammo, cvar_effect

new bool:touch_weapons[33], bool:once[33], bool:player_challenged[33], bool:duel_active, g_pompa[33],
bool:deagle_duel[33], bool:pompa_duel[33], bool:bomba_duel[33], bool:scout_duel[33],bool:awp_duel[33]

new tag[] = "Rafuals Gaming"

new g_msgsync;

new bunny;

new const muzik[] = "destere.wav"
new POMPA_MODEL[]  = "models/sancak_pompa.mdl"

new bool:g_muzik

new miktar[33]

const TASK_ID = 1603;

native jb_get_user_packs(id);

native jb_set_user_packs(id, ammount);

/*================================================================================
Init n' precache        
=================================================================================*/

public plugin_precache()
{    
    beacon_sprite = precache_model("sprites/shockwave.spr")
    precache_sound(muzik)  
    precache_model(POMPA_MODEL)  
}

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    new map[32];
    get_mapname(map,31);
    if((containi(map,"jail") == -1) && (containi(map,"jail_") == -1)) return
    
    register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
    register_event("CurWeapon",     "Event_Change_Weapon", "be", "1=1")
    
    RegisterHam(Ham_Touch, "weaponbox", "fw_touch_weapon")
    RegisterHam(Ham_Touch, "armoury_entity", "fw_touch_weapon")
    RegisterHam(Ham_Touch, "weapon_shield", "fw_touch_weapon")
    RegisterHam(Ham_Spawn, "player", "fw_player_respawn", 1)
    RegisterHam(Ham_Killed, "player", "fw_player_killed")
    register_message(get_user_msgid("AmmoX"), "Message_AmmoX") // DEAGLE SHOT FIX
    
    g_msgsync = CreateHudSyncObj();
    
    bunny    = register_cvar("vs_bunny","1");
    register_concmd( "block_zoom", "ConsoleCommand_ToggleZoom", ADMIN_RCON);
    register_concmd("amx_prac", "Komutlu_aimhsGonder", ADMIN_RCON);
    server_cmd ("block_zoom 0")
    server_cmd ("aim_prac 0")
    
    
    
    register_forward(FM_CmdStart,"fw_cmdstart",1)
    
    // Comando de jugador - Client commands
    register_clcmd("say /lr", "duel_menu")
    register_clcmd("say /lastrequest", "duel_menu")
    register_clcmd("say !lr", "duel_menu")
    register_clcmd("say .lr", "duel_menu")
    register_clcmd("say_team /lr", "duel_menu")
    register_clcmd("say_team !lr", "duel_menu")
    register_clcmd("say /vs", "duel_menu")
    register_clcmd("say !vs", "duel_menu")
    register_clcmd("say_team /vs", "duel_menu")
    register_clcmd("say_team !vs", "duel_menu")
    // Cvars
    cvar_scout_bpammo = register_cvar("jb_scout_bpammo", "90")
    cvar_effect = register_cvar("jb_effect", "0")
    
    g_maxPlayers = get_maxplayers()
    
    g_msgSayText = get_user_msgid("SayText")
    
    ForwardSecAttackScout = RegisterHam( Ham_Weapon_SecondaryAttack, "weapon_scout", "OnSecondaryAttack" );
    
    ForwardsEnabled = true;
}
public Event_Change_Weapon(id)
{
    new weaponID = read_data(2)
    new iwpn, wclip, wammo
    iwpn = get_user_weapon(id, wclip, wammo)
    get_user_ammo(id, iwpn, wammo, wclip)
    
    if(duel_active)
    {
        if(wammo == 0)
        {
            if(g_pompa[id])
            {
                cs_set_user_bpammo(id,CSW_M3,1)
            }
        }
    }
    
    if(g_pompa[id] && weaponID == CSW_M3)
    {
        set_pev(id,pev_viewmodel2,POMPA_MODEL)
    }
}

/*================================================================================
Round Start                
=================================================================================*/

public event_round_start()
{
    server_cmd("bh_enabled 1")
    duel_active = false
    g_aimpracon = false
    remove_task(TASK_ID);
    new players[32],inum,id
    get_players(players,inum)
    for(new i;i<inum;i++)
    {
        id = players[i]
        g_pompa[id] = false
    }
    
}
/*================================================================================
forwards                
=================================================================================*/
public client_putinserver(id)
{
    if(!g_aimpracon)
        return PLUGIN_HANDLED
    else
    {
        set_user_hitzones(0,0,2)
    }
    return PLUGIN_HANDLED
}

public fw_player_respawn(id)
{
    if(!is_user_alive(id) || !cs_get_user_team(id))
        return
    
    set_user_rendering(id)
    remove_task(id)
    remove_task(TASK_ID)
    touch_weapons[id] = false
    once[id] = false
    pompa_duel[id] = false    
    deagle_duel[id] = false
    bomba_duel[id] = false
    scout_duel[id] = false
    awp_duel[id] = false
    player_challenged[id] = false
    miktar[id] = 0
}

public fw_touch_weapon(weapon, id)
{
    if (!is_user_connected(id))
        return HAM_IGNORED;
    
    new players[32], pnum, tempid;
    get_players(players, pnum, "a");
    for( new i; i<pnum; i++ )
    {        
        tempid = players[i];
    }
    
    if (touch_weapons[id] || touch_weapons[tempid])
        return HAM_SUPERCEDE;
    
    return HAM_IGNORED;
}


public fw_cmdstart(player,uc_handle,random_seed)
{
    if(deagle_duel[player])
    {
        cs_set_user_bpammo(player, CSW_DEAGLE, 1)
        
    }
    if(bomba_duel[player])
    {
        
        cs_set_user_bpammo(player, CSW_HEGRENADE, 100)
    }
    if(awp_duel[player])
    {
        
        cs_set_user_bpammo(player, CSW_AWP, 90)
        
    }
    if(pompa_duel[player])
    {
        
        cs_set_user_bpammo(player, CSW_M3, 1)
        
    }
}

public fw_player_killed(victim, attacker, shouldgib)
{
    if(duel_active)
    {
        if(cs_get_user_team(victim) == CS_TEAM_CT && player_challenged[victim])
        {
            deagle_duel[attacker] = false
            pompa_duel[attacker] = false
            bomba_duel[attacker] = false
            scout_duel[attacker] = false
            awp_duel[attacker] = false
            once[attacker] = false
            strip_user_weapons(attacker)
            give_item(attacker, "weapon_knife")
            set_user_rendering(attacker)
            duel_menu(attacker)
            if(cs_get_user_team(attacker) == CS_TEAM_T && miktar[attacker] >= 3)
            {
                new namo[32]
                get_user_name(attacker,namo,31)
                jb_set_user_packs(attacker, jb_get_user_packs(attacker) + miktar[attacker] * 2)
                ChatColor(0,"%s ^1Bahis Yapan Mahkum: ^3%s ^1Bahis Yapilan Miktar: ^3%d TL ^1 2 Katini Kazandi.",tag,namo,miktar[attacker])
            }
        }
        else if(cs_get_user_team(victim) == CS_TEAM_CT && !player_challenged[victim])
        {
            set_task(0.4, "kill_player", attacker)    
        }
        
        miktar[attacker] = 0
        miktar[victim] = 0
        set_cvar_num("bh_enabled",1)
    }
    remove_task(attacker)
    remove_task(victim)
}

public kill_player(id)
{
    user_kill(id)
}

/*================================================================================
Main Menu                
=================================================================================*/

public duel_menu_first(id)
{    
    if(!is_user_alive(id))
        return PLUGIN_HANDLED
    
    if (!once[id])
    {
        if(cs_get_user_team(id) == CS_TEAM_T)
        {
            new cts[32], ts[32], ctsnum, tsnum
            
            for (new id=1; id <= g_maxPlayers; id++)
            {
                if (!is_user_connected(id) || !is_user_alive(id))
                {
                    continue
                }
                
                if (cs_get_user_team(id) == CS_TEAM_T)
                {
                    ts[tsnum++] = id
                }
                else if (cs_get_user_team(id) == CS_TEAM_CT)
                {
                    cts[ctsnum++] = id
                }
            }
            if (tsnum == 1 && ctsnum >= 1)
            {  
                if(jb_get_user_packs(id) >= 3)
                {
                    static opcion[64]
                    
                    formatex(opcion, charsmax(opcion),"\rRafuals Gaming \wBahis Miktari Secin")
                    new iMenu = menu_create(opcion, "sub_duel_menu_first")
                    
                    formatex(opcion, charsmax(opcion),"\w3 \rTL")
                    menu_additem(iMenu, opcion, "1")    
                    
                    formatex(opcion, charsmax(opcion),"\w5 \rTL")
                    menu_additem(iMenu, opcion, "2")
                    
                    formatex(opcion, charsmax(opcion),"\w7 \rTL")
                    menu_additem(iMenu, opcion, "3")    
                    
                    formatex(opcion, charsmax(opcion),"\w10 \rTL")
                    menu_additem(iMenu, opcion, "4")
                    
                    formatex(opcion, charsmax(opcion),"\w15 \rTL")
                    menu_additem(iMenu, opcion, "5")
                    
                    formatex(opcion, charsmax(opcion),"\w20 \rTL")
                    menu_additem(iMenu, opcion, "6")
                    
                    
                    menu_setprop(iMenu, MPROP_EXIT, MEXIT_ALL)
                    menu_display(id, iMenu, 0)
                }
                else{
                    ChatColor(id,"%s ^3JB'lerin Minimum Bahis Miktarindan Az Oldugu Icin Bahis Yapamayacaksin.",tag)
                    duel_menu(id)
                    miktar[id] = 0
                }
                
            }
            else if    (tsnum == 1 && ctsnum < 1)
            {
            }
            else if    (tsnum > 1)
            {
                ChatColor(id, "%s ^1Sadece Son Mahkum ^3/lr ^1Komutunu Kullanabilir.", tag)
            }
        }
        else
        {
            ChatColor(id, "%s ^1Sadece Mahkumlar ^3/lr ^1Komutunu Kullanabilir.", tag)
        }
    }
    else
    {
        ChatColor(id, "%s ^1Tekrar Kullanabilmek Icin Gardiyani Oldurmelisin.", tag)
    }
    return PLUGIN_HANDLED
}

public sub_duel_menu_first(id, menu, item)
{
    
    if (item == MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
    
    new Data[6], Name[64]
    new Access, Callback
    
    menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
    
    new Key = str_to_num(Data)
    
    switch (Key)
    {
        case 1:
        {    
            miktar[id] = 3
            duel_menu(id)
        }
        case 2:
        {
            miktar[id] = 5
            duel_menu(id)
        }
        case 3:
        {
            miktar[id] = 7
            duel_menu(id)
        }
        case 4:
        {
            miktar[id] = 10
            duel_menu(id)
        }
        case 5:
        {
            miktar[id] = 15
            duel_menu(id)
        }
        case 6:
        {
            miktar[id] = 20
            duel_menu(id)
        }
    }
    
    menu_destroy(menu)    
    return PLUGIN_HANDLED
}
public duel_menu(id)
{    
    if(!is_user_alive(id))
        return PLUGIN_HANDLED
    
    if (!once[id])
    {
        if(cs_get_user_team(id) == CS_TEAM_T)
        {
            new cts[32], ts[32], ctsnum, tsnum
            
            for (new id=1; id <= g_maxPlayers; id++)
            {
                if (!is_user_connected(id) || !is_user_alive(id))
                {
                    continue
                }
                
                if (cs_get_user_team(id) == CS_TEAM_T)
                {
                    ts[tsnum++] = id
                }
                else if (cs_get_user_team(id) == CS_TEAM_CT)
                {
                    cts[ctsnum++] = id
                }
            }
            if (tsnum == 1 && ctsnum >= 1)
            {  
                
                static opcion[64]
                
                formatex(opcion, charsmax(opcion),"\d| \rRG \d| \w~ \ySilahini Sec")
                new iMenu = menu_create(opcion, "sub_duel_menu")
                
                formatex(opcion, charsmax(opcion),"\d|\rRG\d| \w~ \yDurbunluler Vs")
                menu_additem(iMenu, opcion, "1")    
                
                formatex(opcion, charsmax(opcion),"\d|\rRG\d| \w~ \yDeagle Vs")
                menu_additem(iMenu, opcion, "2")
                
                formatex(opcion, charsmax(opcion),"\d|\rRG\d| \w~ \yPompa Vs")
                menu_additem(iMenu, opcion, "3")    
                
                formatex(opcion, charsmax(opcion),"\d|\rRG\d| \w~ \yBomba Vs")
                menu_additem(iMenu, opcion, "4")
                
                
                menu_setprop(iMenu, MPROP_EXIT, MEXIT_ALL)
                menu_display(id, iMenu, 0)
                
            }
            else if    (tsnum == 1 && ctsnum < 1)
            {
                ChatColor(id,"!n[!t%s!n] !gMalesef Yasayan Gardiyan Yok!",tag)
            }
            else if    (tsnum > 1)
            {
                ChatColor(id,"!n[!t%s!n] !gSadece Sona Kalan Mahkum Duello Yapabilir!",tag)
            }
        }
        else
        {
            ChatColor(id,"!n[!t%s!n] !gBu Komut Sadece Mahkumlar icindir.",tag)
        }
    }
    else
    {
        //
    }
    return PLUGIN_HANDLED
}

public sub_duel_menu(id, menu, item)
{
    
    if (item == MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
    
    new Data[6], Name[64]
    new Access, Callback
    
    menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
    
    new Key = str_to_num(Data)
    
    switch (Key)
    {
        case 1:
        {
            if(is_user_alive(id))
            {
                Scoutt_Duello(id)
            }
        }
        case 2:
        {
            if(is_user_alive(id))
            {
                
                deagle_duel[id] = true
                pompa_duel[id] = false
                bomba_duel[id] = false
                awp_duel[id] = false
                scout_duel[id] = false
                choose_enemy(id)
            }
        }
        case 3:
        {
            if(is_user_alive(id))
            {
                deagle_duel[id] = false
                bomba_duel[id] = false
                pompa_duel[id] = true
                awp_duel[id] = false
                scout_duel[id] = false
                choose_enemy(id)
            }
        }
        case 4:
        {
            if(is_user_alive(id))
            {
                bomba_duel[id] = true
                deagle_duel[id] = false
                pompa_duel[id] = false
                awp_duel[id] = false
                scout_duel[id] = false
                choose_enemy(id)
            }
        }
    }
    
    menu_destroy(menu)    
    return PLUGIN_HANDLED
}

public Scoutt_Duello(id)
{
    static Item[64]
    
    formatex(Item, charsmax(Item),"\d| \rRafuals Gaming \d| \w~ \yDURBUNLULER")
    new Menu = menu_create(Item, "scout_devam")
    
    formatex(Item, charsmax(Item),"\d|\rRG\d| \w~ \yAWP")
    menu_additem(Menu, Item, "1")
    
    formatex(Item, charsmax(Item),"\d|\rRG\d| \w~ \ySCOUT")
    menu_additem(Menu, Item, "2")
    
    
    menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL)
    menu_display(id, Menu)
    
    return PLUGIN_HANDLED
}

public scout_devam(id,amenu,item)
{
    if(item == MENU_EXIT)
    {
        menu_destroy(amenu)
        return PLUGIN_HANDLED    
    }
    new acces, callback, data[6], iname[64]
    menu_item_getinfo(amenu, item, acces, data, 5, iname, 63,callback)
    if(str_to_num(data) == 1 && is_user_alive(id))
    {
        awp_duel[id] = true
        deagle_duel[id] = false
        pompa_duel[id] = false
        bomba_duel[id] = false
        scout_duel[id] = false
        choose_enemy(id)
    }
    else if(str_to_num(data) == 2 && is_user_alive(id))
    {
        scout_duel[id] = true
        awp_duel[id] = false
        deagle_duel[id] = false
        pompa_duel[id] = false
        bomba_duel[id] = false
        choose_enemy(id)
    }
    menu_destroy(amenu)
    return PLUGIN_HANDLED
}
/*================================================================================
Menu of challenges                
=================================================================================*/

public choose_enemy(id)
{
    static opcion[64]
    
    formatex(opcion, charsmax(opcion),"\d| \rRafuals Gaming \d| \w~ \yRakibini Sec")
    new iMenu = menu_create(opcion, "sub_choose_enemy")
    
    new players[32], pnum, tempid
    new szName[32], szTempid[10]
    
    get_players(players, pnum, "a")
    
    for( new i; i<pnum; i++ )
    {
        tempid = players[i]
        
        if (cs_get_user_team(tempid) != CS_TEAM_CT)
        {
            continue
        }
        
        get_user_name(tempid, szName, 31)
        num_to_str(tempid, szTempid, 9)
        menu_additem(iMenu, szName, szTempid, 0)
    }
    
    menu_display(id, iMenu)
    return PLUGIN_HANDLED
}

public sub_choose_enemy(id, menu, item)
{
    if( item == MENU_EXIT )
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
    
    new Data[6], Name[64]
    new Access, Callback
    menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
    
    new tempid = str_to_num(Data)
    
    new mapname[32], challenger[32], challenged[32], ct_origin[3], te_origin[3]
    
    get_mapname(mapname,31)
    get_user_name(id, challenger, 31)
    get_user_name(tempid, challenged, 31)
    
    // strip weapons
    strip_user_weapons(id)
    strip_user_weapons(tempid)
    
    // health
    set_user_health(id, 100)
    set_user_health(tempid, 100)
    
    if(get_pcvar_num(bunny) == 0)
    {
        server_cmd("bh_enabled 1")
    }
    else
    {
        server_cmd("bh_enabled 0")
    }
    // Server Options
    new players[32],inum;
    get_players(players,inum)
    for(new i;i<inum;i++) {
        set_user_godmode(players[i],0)
    }
    
    duelzaman = VSZAMAN
    FuncCountDown(id)
    
    // effects
    switch (get_pcvar_num(cvar_effect))
    {
        case 0: // glow
        {
            set_user_rendering(id, kRenderFxGlowShell, 250, 0, 0, kRenderNormal, 20)    
            set_user_rendering(tempid, kRenderFxGlowShell, 0, 0, 250, kRenderNormal, 20)
        }
        case 1: // beacon
        {
            set_task(1.0, "beacon", id)
            set_task(1.0, "beacon", tempid)
        }
        case 2: // glow n' beacon
        {
            set_user_rendering(id, kRenderFxGlowShell, 250, 0, 0, kRenderNormal, 20)    
            set_task(1.0, "beacon", id)
            set_user_rendering(tempid, kRenderFxGlowShell, 0, 0, 250, kRenderNormal, 20)
            set_task(1.0, "beacon", tempid)
        }
    }
    
    // player challenged
    player_challenged[tempid] = true
    
    // lr menu once until he kills the player challenged
    once[id] = true
    
    // unable pick up weapon (only the 2 players on duel)
    touch_weapons[id] = true
    touch_weapons[tempid] = true
    
    g_muzik = true
    client_cmd(0,"stopsound")
    set_task(0.1,"muzik_cal")
    
    if(deagle_duel[id])
    {
        server_cmd("block_zoom 0")
        server_cmd("amx_unammo @ALL 0")
        server_cmd("amx_prac ^"KAPALI^"")
        deagle_duel[tempid] = true
        
        cs_set_weapon_ammo(give_item(id, "weapon_deagle"), 1)
        cs_set_user_bpammo(id, CSW_DEAGLE, 1) // DEAGLE SHOT FIX
        cs_set_weapon_ammo(give_item(tempid, "weapon_deagle"), 1)
        cs_set_user_bpammo(tempid, CSW_DEAGLE, 1) // DEAGLE SHOT FIX
        
        if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -1352, ct_origin[1] = 271, ct_origin[2] = 38
            te_origin[0] = -1338, te_origin[1] = -782, te_origin[2] = 38
            set_user_origin(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor(0,"!n[!t%s!n] !g%s !nvs !g%s !nDEAGLE Duellosu Yapiyorlar.", tag , challenger, challenged)
    }
    else if(bomba_duel[id])
    {
        server_cmd("block_zoom 0")
        server_cmd("amx_unammo @ALL 0")
        server_cmd("amx_prac ^"KAPALI^"")
        bomba_duel[tempid] = true
        cs_set_weapon_ammo(give_item(id, "weapon_hegrenade"), 1)
        cs_set_weapon_ammo(give_item(tempid, "weapon_hegrenade"), 1)
        
        if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -759, ct_origin[1] = 1047, ct_origin[2] = 100
            te_origin[0] = -585, te_origin[1] = 867, te_origin[2] = 100
            set_user_origin(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor(0,"!n[!t%s!n] !g%s !nvs !g%s !nBomba Duellosu Yapiyorlar.", tag , challenger, challenged)
    }
    else if(awp_duel[id])
    {
        
        server_cmd("block_zoom 0")
        server_cmd("amx_unammo @ALL 0")
        server_cmd("amx_prac ^"KAPALI^"")
        cs_set_weapon_ammo(give_item(id, "weapon_awp"), 30)
        cs_set_weapon_ammo(give_item(tempid, "weapon_awp"), 30)
        
        if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -1756, ct_origin[1] = -2526, ct_origin[2] = 36
            te_origin[0] = -3020, te_origin[1] = -2529, te_origin[2] = 36
            set_user_origin(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor(0,"!n[!t%s!n] !g%s !nvs !g%s !nAWP Duellosu Yapiyorlar.", tag , challenger, challenged)
    }
    else if(scout_duel[id])
    {
        server_cmd("amx_prac ^"KAPALI^"")
        server_cmd("amx_unammo @ALL 0")
        give_item(id, "weapon_scout")
        give_item(tempid, "weapon_scout")
        cs_set_user_bpammo(id, CSW_SCOUT, get_pcvar_num(cvar_scout_bpammo))
        cs_set_user_bpammo(tempid, CSW_SCOUT, get_pcvar_num(cvar_scout_bpammo))
        server_cmd("block_zoom 0")
        
        
        if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -2898, ct_origin[1] = -2040, ct_origin[2] = 37
            te_origin[0] = -2908, te_origin[1] = 905, te_origin[2] = 37
            set_user_origin(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        ChatColor(0,"!n[!t%s!n] !g%s !nvs !g%s !nSCOUT Duellosu Yapiyorlar.", tag , challenger, challenged)
        
    }
    else if(pompa_duel[id])
    {
        g_pompa[id] = true
        g_pompa[tempid] = true
        server_cmd("block_zoom 0")
        server_cmd("amx_unammo @ALL 0")
        server_cmd("amx_prac ^"KAPALI^"")
        pompa_duel[tempid] = true
        cs_set_weapon_ammo(give_item(id, "weapon_m3"), 1)
        cs_set_user_bpammo(id, CSW_M3, 1) // POMPA SHOT FIX
        cs_set_weapon_ammo(give_item(tempid, "weapon_m3"), 1)
        cs_set_user_bpammo(tempid, CSW_M3, 1) // POMPA SHOT FIX
        
        
        if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -1352, ct_origin[1] = 271, ct_origin[2] = 38
            te_origin[0] = -1338, te_origin[1] = -782, te_origin[2] = 38
            set_user_origin(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor(0,"!n[!t%s!n] !g%s !nvs !g%s !nPOMPA Duellosu Yapiyorlar.", tag , challenger, challenged)
        
    }
    
    if(miktar[id] >= 3)
    {
        ChatColor(0, "%s ^1Bahis Yapan Mahkum: ^3%s ^1Bahis Yapilan Miktar: ^3%d TL ^1Kazanirsa 2 Katini Alacak.",tag,challenger,miktar[id])
        jb_set_user_packs(id, jb_get_user_packs(id) - miktar[id])
    }
    
    duel_active = true
    
    menu_destroy(menu)
    return PLUGIN_HANDLED
}
public muzik_cal()
{
    if(g_muzik)
    {
        emit_sound(0, CHAN_AUTO, muzik, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
        g_muzik = false
    }
}
public beacon(id)
{
    if(cs_get_user_team(id) == CS_TEAM_CT)
    {
        static origin[3]
        get_user_origin(id, origin)
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
        write_byte(TE_BEAMCYLINDER)    // TE id
        write_coord(origin[0])         // x
        write_coord(origin[1])        // y
        write_coord(origin[2]-20)    // z
        write_coord(origin[0])        // x axis
        write_coord(origin[1])        // y axis
        write_coord(origin[2]+200)    // z axis
        write_short(beacon_sprite)    // sprite
        write_byte(0)            // startframe  
        write_byte(1)            // framerate  
        write_byte(6)            // life
        write_byte(2)              // width
        write_byte(1)               // noise    
        write_byte(0)              // red  
        write_byte(0)               // green
        write_byte(250)         // blue
        write_byte(200)            // brightness
        write_byte(0)            // speed
        message_end()
    }
    else
    {
        static origin[3]
        get_user_origin(id, origin)
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
        write_byte(TE_BEAMCYLINDER)    // TE id
        write_coord(origin[0])         // x
        write_coord(origin[1])        // y
        write_coord(origin[2]-20)    // z
        write_coord(origin[0])        // x axis
        write_coord(origin[1])        // y axis
        write_coord(origin[2]+200)    // z axis
        write_short(beacon_sprite)    // sprite
        write_byte(0)            // startframe  
        write_byte(1)            // framerate  
        write_byte(6)            // life
        write_byte(2)              // width
        write_byte(1)               // noise    
        write_byte(250)            // red  
        write_byte(0)               // green
        write_byte(0)             // blue
        write_byte(200)            // brightness
        write_byte(0)            // speed
        message_end()
    }
    set_task(1.0, "beacon", id)
    
}

public ConsoleCommand_ToggleZoom( const client, const level, const cid )
{
    if( cmd_access( client, level, cid, 2 ) )
    {
        new arg[ 2 ];
        read_argv( 1, arg, charsmax( arg ) );
        
        new newStatus = clamp( str_to_num( arg ), 0, 1  );
        
        if( ForwardsEnabled ^ newStatus )
        {
            if( newStatus  )
            {
                EnableHamForward( ForwardSecAttackScout );
            }
            else
            {
                DisableHamForward( ForwardSecAttackScout );
            }
            
            ForwardsEnabled = newStatus;
        }
    }
    
    return PLUGIN_HANDLED;
}

public OnSecondaryAttack( const entity )
{
    return HAM_SUPERCEDE;
}


public Komutlu_aimhsGonder(id)
{
    if (id && !((get_user_flags(id) & ADMIN_RCON)))
    {
        client_print(id, print_console, "[Rafuals Gaming] Bu komuta erisiminiz yok!")
        return PLUGIN_CONTINUE
    }
    new arg[8]
    read_argv(1, arg, 7)
    
    if(equali(arg, "ACIK"))
    {
        set_user_hitzones(0 ,0, 2)
        g_aimpracon = true
    }
    else if(equali(arg, "KAPALI"))
    {
        set_user_hitzones(0, 0, 255)
        g_aimpracon = false
    }
    return PLUGIN_HANDLED
}

public FuncCountDown(id) {
    
    if(!duelzaman) {
        new players[32],inum;
        get_players(players,inum)
        for(new i;i<inum;i++) {
            if(get_user_team(players[i]) == 1)
            {
                user_kill(players[i])
            }
        }
        
    }
    else set_task(1.0,"FuncCountDown", TASK_ID)
    set_hudmessage(0, 255 , 0, -1.0, 0.76 , 2, 0.02, 1.0, 0.01, 0.1, 35)
    ShowSyncHudMsg(0,g_msgsync,"Duello'nun Bitmesine %d Saniye Kaldi!", duelzaman--)
    
}

// DEAGLE SHOT FIX
// Made by akcaliberkk

public Message_AmmoX(iMsgId, iMsgDest, id)
{
    if( is_user_alive(id) && duel_active && deagle_duel[id] )
    {
        if( get_msg_arg_int(2) < 1 )
        {
            set_msg_arg_int(2, ARG_BYTE, 1)
            set_pdata_int(id, 384, 1, 5)
            
        }
    }    
}


/*================================================================================
Stocks                    
=================================================================================*/

stock ChatColor(const id, const input[], any:...)
{
    new count = 1, players[32]
    static msg[191]
    vformat(msg, 190, input, 3)
    
    replace_all(msg, 190, "!g", "^4") // Green Color
    replace_all(msg, 190, "!n", "^1") // Default Color
    replace_all(msg, 190, "!t", "^3") // Team Color
    
    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, g_msgSayText, _, players[i])
            write_byte(players[i])
            write_string(msg)
            message_end()
        }
    }
}




Pouex(Görkem Bacısısikişenoğlu)'in anasını götünden sikeyim.
Emirhan SkürtSkürt seninde ananı sikicem sıradasın.
Dediğim gibi ferudun ve berke lafım yok.
forum.csduragi.com
#5
tesekkurler


#6
Konu çözülmüştür


#7
Konunuz Çözülmüş İsteklere Taşınmıştır.





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

Yorum yapmak için üye olmanız gerekiyor

ya da

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
jaile uyarlama hkN. 3 330 22-05-2019, Saat: 07:20
Son Yorum: ITenGriTR
jaile uyarlama hkN. 3 290 24-04-2019, Saat: 20:43
Son Yorum: MawiLarq

Task