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 ?

Jbmenu Hatası Yardım

Konu

#11
Son Düzenleme: 06-08-2017, Saat: 21:33, Düzenleyen: Ramsey.
Malesef Yine Aynı BUG Mevcut

@-SwindLer
@BraveMan


#12
Şöyle deneyiniz birde.


.sma lr.sma (Dosya Boyutu: 25.19 KB | İndirme Sayısı: 4)
                                                                                                                 # Forum Kuralları #

                                                                            And who wants to be king...
#13
Son Düzenleme: 07-08-2017, Saat: 10:55, Düzenleyen: ITenGriTR.
@Ramsey Bu Kalkmaz Gibi Gözüküyor Fakat Sunu Denicem Yasakli Semboller FLn Yaprsam ATarim
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <jail>
#define PLUGIN "Duello Plugini"
#define VERSION "2.0"
#define AUTHOR "Ak0"
#define charsmax(%1) (sizeof(%1)-1)
new const yasakli_semboller[][] =
{
"-"
}

#define VSZAMAN 60

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

new 
duelzaman;
new 
g_bahismiktar33 ];

new 
bool:g_aimpracon false

new g_maxPlayersg_msgSayTextbeacon_sprite,g_alive_pris

new cvar_granadas_bpammocvar_scout_bpammocvar_effect

new bool:touch_weapons[33], bool:once[33], bool:player_challenged[33], bool:duel_active,bool:m3_duel[33],g_pompa[33],
bool:knife_duel[33] ,bool:g_muzik,bool:deagle_duel[33], bool:hsmod_duel[33], bool:grenade_duel[33], bool:scout_duel[33],bool:zoomscout_duel[33]

new 
tag[] = "WebAyyildiz.Com"

new g_msgsync;

new 
bunny;

new const 
muzik[] = "BlackMask-LR.wav"

const TASK_ID 1603;


new 
POMPA_MODEL[]  "models/BlackMask-Pompa.mdl"
/*================================================================================
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(PLUGINVERSIONAUTHOR)
    
    register_event
("HLTV""event_round_start""a""1=0""2=0")
    register_event("CurWeapon"    "Event_Change_Weapon""be""1=1")
    register_clcmd"bahis_miktari""bahis_soyle" );
    register_event"DeathMsg" "olunce" "a" );
    
    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")
    RegisterHam(Ham_Killed"player""saki")
        
    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""bahis_sor")
    register_clcmd("say !lr""bahis_sor")
    register_clcmd("say_team /lr""bahis_sor")
    register_clcmd("say_team !lr""bahis_sor")
    register_clcmd("say /vs""bahis_sor")
    register_clcmd("say !vs""bahis_sor")
    register_clcmd("say_team /vs""bahis_sor")
    register_clcmd("say_team !vs""bahis_sor")
    // Cvars
    cvar_granadas_bpammo register_cvar("jb_grenade_bpammo","90") 
    cvar_scout_bpammo 
register_cvar("jb_scout_bpammo""90") 
    cvar_effect 
register_cvar("jb_effect""2") 
    
    g_maxPlayers 
get_maxplayers()
    
    g_msgSayText 
get_user_msgid("SayText")
    
    ForwardSecAttackScout 
RegisterHamHam_Weapon_SecondaryAttack"weapon_scout""OnSecondaryAttack" );
    
    ForwardsEnabled 
true;
    
    
}
public 
olunce( )
{
    new killer read_data);
    new victim read_data);
    
    
if( g_bahis & ( << killer ) && get_user_teamkiller ) == && get_user_teamvictim ) == )
    {
        jb_set_user_packskillerjb_get_user_packskiller ) + miktarkiller ] );
        ChatColorkiller"!n[ !t%s !n] !yTebrikler vsyi kazandigin icin !n[ !t%d TL !n] !ykazandin."tagmiktarkiller ] );
        miktarkiller ] = 0;
        g_bahis &= ~( << killer );
        
    
}
    if( g_bahis & ( << killer ) && get_user_teamkiller ) == && get_user_teamvictim ) == )
    {
        miktarkiller ] = 0;
        g_bahis &= ~( << killer );
    }
}
public 
bahis_sorid )
{
    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], ctsnumtsnum 
            
            
for (new id=1id <= g_maxPlayersid++)
            {
                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 == && ctsnum >= 1) 
            
 
                
                
static opcion[64]
                
                formatex
(opcioncharsmax(opcion),"\yWebAyyildiz.Com Gaming Bahis Menu")
                new iMenu menu_create(opcion"bahis_devam")
                
                formatex
(opcioncharsmax(opcion),"\wBahisli Lr At")
                menu_additem(iMenuopcion"1"   
                
                formatex
(opcioncharsmax(opcion),"\wLr At")
                menu_additem(iMenuopcion"2")
                
                menu_display
idiMenu );
            }
            else
            {
                ChatColorid"!gASDSADASDSADS" )
            }
        }
    }
    return PLUGIN_HANDLED;
}
public 
bahis_devamidmenuitem )
{
    if( item == MENU_EXIT )
    {
        menu_destroymenu );
        return PLUGIN_HANDLED;
    }
    new accesscallbackdata], name32 ];
    menu_item_getinfomenuitemaccessdata5name31 callback );
    
    
new key str_to_numdata );

    switch( key )
    {
        case :
        {
            console_cmdid"messagemode bahis_miktari" )
        }
        case :
        {
            duel_menuid );
        }
    }
    menu_destroymenu );
    return PLUGIN_HANDLED;
}
public 
bahis_soyleid )
{
    new say192 ];
    read_argssay191 );
    remove_quotessay );
    for( new isizeof yasakli_sembolleri++ )
    {
if( 
containisayyasakli_semboller] ) != -)
{
ChatColorid"!n[ !t%s !n] !yLan Mal !n[ !tO Bugu !n] !yKapattik"tag );
console_cmdid"messagemode bahis_miktari" );
return 
PLUGIN_HANDLED;
}
    }
    if( !is_str_numsay ) && equal(say"") )
    {
        ChatColorid"!n[ !t%s !n] !yUzgunum sadece !n[ !trakam !n] !yyazabilirsiniz"tag );
        console_cmdid"messagemode bahis_miktari" );
        return PLUGIN_HANDLED;
    }
    if( str_to_numsay ) > 20 )
    {
        ChatColorid"!n[ !t%s !n] !yUzgunum maksimum !n[ !t20 TL !n] !yyatirabilirsiniz"tag );
        console_cmdid"messagemode bahis_miktari" );
        return PLUGIN_HANDLED;
    }
    jb_set_user_packsidjb_get_user_packsid ) - str_to_numsay ) );
    miktarid ] = str_to_numsay );
    ChatColorid"!n[ !t%s !n] !yBahise !n[ !t%d TL !n] !yyatirdin.Kazanirsan !n[ !t%d TL !n] !ykazanicaksin"tag,str_to_numsay ), miktarid ] );
    g_bahis |= ( << id );
    duel_menuid );
    return PLUGIN_HANDLED;
}
    
public Event_Change_Weapon(id)
{
    new weaponID read_data(2)
    new iwpnwclipwammo
    iwpn 
get_user_weapon(idwclipwammo)
    get_user_ammo(idiwpnwammowclip)
    
    
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()
{
    duel_active false
    g_aimpracon 
false
    remove_task
(TASK_ID);
    set_cvar_num("bh_enabled",1)
    server_cmd("block_zoom 0")
    server_cmd("amx_prac ^"KAPALI^"")
    server_cmd("sv_maxvelocity 99999999")
    server_cmd("sv_maxspeed 99999999")
    server_cmd("sv_airaccelerate 99999999")
    server_cmd("sv_airmove 99999999")
    new players[32],inum,id
    get_players
(players,inum)
    for(new i;i<inum;i++)
    {
        id players[i]
        g_pompa[id] = false
        miktar
id ] = 0;
        g_bahis &= ~( << id );
    }
        
}
/*================================================================================
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 
    knife_duel
[id] = false
    m3_duel
[id] = false
    deagle_duel
[id] = false
    hsmod_duel
[id] = false
    grenade_duel
[id] = false
    scout_duel
[id] = false
    zoomscout_duel
[id] = false
    player_challenged
[id] = false
    miktar
id ] = 0;
    g_bahis &= ~( << id );
}
public 
Check()
{
    new players[32],teroralv
    get_players
(players,teroralv,"ae","TERRORIST")
    
    g_alive_pris 
teroralv
    
for(new i;i<=get_maxplayers();i++)
    {
        if(g_alive_pris == && is_user_alive(i))
        {
            console_cmd(i,"say /lr")
        }
    }
    
public fw_touch_weapon(weaponid)
{
    if (!is_user_connected(id))
        return HAM_IGNORED;
    
    
new players[32], pnumtempid;
    get_players(playerspnum"a");
    for( new ii<pnumi++ )
           
        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(playerCSW_DEAGLE1)
    }
    else if(hsmod_duel[player])
    {
        cs_set_user_bpammo(playerCSW_DEAGLE1)
    }
}

public 
fw_player_killed(victimattackershouldgib)
{
    if(! (1<=victim<=g_maxPlayers && 1<=attacker<=g_maxPlayers))
    {
        return HAM_IGNORED
    
}
    new name[32]
    get_user_name(attackername31)
    
    
if(duel_active)
    {
        if(cs_get_user_team(victim) == CS_TEAM_CT && player_challenged[victim])
        {
            knife_duel[attacker] = false
            m3_duel
[attacker] = false
            deagle_duel
[attacker] = false
            hsmod_duel
[attacker] = false
            grenade_duel
[attacker] = false
            scout_duel
[attacker] = false
            zoomscout_duel
[attacker] = false
            once
[attacker] = false
            strip_user_weapons
(attacker)
            give_item(attacker"weapon_knife")
            set_user_rendering(attacker)
            bahis_sor(attacker)
            remove_task(TASK_ID);
        }
        else if(cs_get_user_team(victim) == CS_TEAM_CT && !player_challenged[victim])
        {
            set_task(0.4"kill_player"attacker)
            set_hudmessage02550, -1.00.4025.08.00.00.010)
            show_hudmessage(0"%s Oldurecek gardiyan birakmadin tebrik ederiz)"name)
            
        
}
    }
    remove_task(attacker)
    remove_task(victim)
    return HAM_IGNORED
}
public 
saki(victimattackershouldgib)
{
    if(! (1<=victim<=g_maxPlayers && 1<=attacker<=g_maxPlayers))
    {
        return HAM_IGNORED
    
}
    if(get_user_team(attacker) == && get_user_team(victim) == 1)
    {
        new players[32],teroralv
        get_players
(players,teroralv,"ae","TERRORIST")
        g_alive_pris teroralv
        
for(new i;i<=get_maxplayers();i++)
        {
            if(g_alive_pris == && is_user_alive(i) && get_user_team(i) == 1)
            {
                bahis_sor(i)
            }
        }
    }
    if(get_user_team(attacker) == && get_user_team(victim) == 1)
    {
        new players[32],teroralv
        get_players
(players,teroralv,"ae","TERRORIST")
        g_alive_pris teroralv
        
for(new i;i<=get_maxplayers();i++)
        {
            if(g_alive_pris == && is_user_alive(i))
            {
                bahis_sor)
            }
        }
    }
    return HAM_IGNORED
}

    
public kill_player(id)
{
    user_kill(id)
}

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

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], ctsnumtsnum 
            
            
for (new id=1id <= g_maxPlayersid++)
            {
                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 == && ctsnum >= 1) 
            
 
                
                
static opcion[64]
                
                formatex
(opcioncharsmax(opcion),"\yWebAyyildiz.Com Gaming sana Basarilar diliyor:)")
                new iMenu menu_create(opcion"sub_duel_menu")
                
                formatex
(opcioncharsmax(opcion),"\wBICAK VS")
                menu_additem(iMenuopcion"1"   
                
                formatex
(opcioncharsmax(opcion),"\wPOMPALI VS")
                menu_additem(iMenuopcion"2")
                
                formatex
(opcioncharsmax(opcion),"\wBOMBA VS")
                menu_additem(iMenuopcion"3"   
                
                formatex
(opcioncharsmax(opcion),"\wSCOUT WS [ZOOMLU,ZOOMSUZ")
                menu_additem(iMenuopcion"4")
                
                formatex
(opcioncharsmax(opcion),"\wHS mODE VS[SADECE DEAGLE]")
                menu_additem(iMenuopcion"5")
                
                formatex
(opcioncharsmax(opcion),"\wDEAGLE VS")
                menu_additem(iMenuopcion"6")
                
                
                menu_setprop
(iMenuMPROP_EXITMEXIT_ALL)
                menu_display(idiMenu0)
                
            
}
            else if    (tsnum == && ctsnum 1)
            {
                ChatColor(id,"!y%s !nMalesef Yasayan !yCT!n yok"tag) 
            
}
            else if    (tsnum 1)
            {
                ChatColor(id,"!y%s !nSadece SON'a kalan mahkum DUELLO yapabilir!",tag)
            }
        }
        else
        {
            ChatColor(id,"!y%s !nBu komut sadece !yMAHKUMLAR!n icindir.",tag) 
        
}
    }
    else
    {
        ChatColor(id,"!y%s !nKill the !yCT!n and you can open the menu.",tag)
    }
    return PLUGIN_HANDLED
}

public 
sub_duel_menu(idmenuitem)
{
    
    
if (item == MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    
}
    
    
new Data[6], Name[64]
    new AccessCallback
    
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
    
    
new Key str_to_num(Data)
    
    
switch (Key)
    {
        case 1:
           
            knife_duel
[id] = true
            choose_enemy
(id)
        }
        case 2: 
        
{
            m3_duel[id] = true
            choose_enemy
(id)
        }
        case 3: 
        
{
            grenade_duel[id] = true
            choose_enemy
(id)
        }
        case 4: 
        
{
            Scoutt_Duello(id)
        }
        case 5: 
        
{
            hsmod_duel[id] = true
            choose_enemy
(id)
        }
        case 6: 
        
{
            deagle_duel[id] = true
            choose_enemy
(id)
        }
    }
    
    menu_destroy
(menu   
    
return PLUGIN_HANDLED
}

public 
Scoutt_Duello(id)
{
    static Item[64]
    
    formatex
(Itemcharsmax(Item),"\yScout Duello") 
    
new Menu menu_create(Item"scout_devam")
    
    formatex
(Itemcharsmax(Item),"\wZoomlu Scout")
    menu_additem(MenuItem"1")
    
    formatex
(Itemcharsmax(Item),"\wZoomsuz Scout")
    menu_additem(MenuItem"2")
    
    
    menu_setprop
(MenuMPROP_EXITMEXIT_ALL)
    menu_display(idMenu)
    
    
return PLUGIN_HANDLED
}

public 
scout_devam(id,amenu,item)
{
    if(item == MENU_EXIT)
    {
        menu_destroy(amenu)
        return PLUGIN_HANDLED    
    
}
    new accescallbackdata[6], iname[64]
    menu_item_getinfo(amenuitemaccesdata5iname63,callback)
    if(str_to_num(data) == 1)
    {
        scout_duel[id] = true
        choose_enemy
(id)
    }
    else if(str_to_num(data) == 2)
    {
        zoomscout_duel[id] = true
        choose_enemy
(id)
    }
    menu_destroy(amenu)
    return PLUGIN_HANDLED
}
/*================================================================================
Menu of challenges                
=================================================================================*/

public choose_enemy(id)
{
    static opcion[64]
    
    formatex
(opcioncharsmax(opcion),"\yDuello Atilicak Gardiyani Sec")
    new iMenu menu_create(opcion"sub_choose_enemy")
    
    
new players[32], pnumtempid
    
new szName[32], szTempid[10]
    
    get_players
(playerspnum"a")
    
    
for( new ii<pnumi++ )
    {
        tempid players[i]
        
        
if (cs_get_user_team(tempid) != CS_TEAM_CT)
        {
            continue
        }
        
        get_user_name
(tempidszName31)
        num_to_str(tempidszTempid9)
        menu_additem(iMenuszNameszTempid0)
    }
    
    menu_display
(idiMenu)
    return PLUGIN_HANDLED
}

public 
sub_choose_enemy(idmenuitem)
{
    if(item == MENU_EXIT || !is_user_alive(id))
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    
}
    
    
new Data[6], Name[64]
    new AccessCallback
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
    
    
new tempid str_to_num(Data)
    if(!is_user_alive(tempid))
    {
        return PLUGIN_HANDLED
    
}
    
    
new mapname[32], challenger[32], challenged[32], ct_origin[3], te_origin[3]
    
    get_mapname
(mapname,31)
    get_user_name(idchallenger31)
    get_user_name(tempidchallenged31)
    
    
// strip weapons
    strip_user_weapons(id)
    strip_user_weapons(tempid)
    
    
// health
    set_user_health(id100)
    set_user_health(tempid100)
    
    
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(idkRenderFxGlowShell25000kRenderNormal20   
            set_user_rendering
(tempidkRenderFxGlowShell00250kRenderNormal20)
        }
        case 1// beacon
        {
            set_task(1.0"beacon"id)
            set_task(1.0"beacon"tempid)
        }
        case 2// glow n' beacon
        {
            set_user_rendering(idkRenderFxGlowShell25000kRenderNormal20   
            set_task
(1.0"beacon"id)
            set_user_rendering(tempidkRenderFxGlowShell00250kRenderNormal20)
            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(knife_duel[id])
    {
        server_cmd("block_zoom 0")
        server_cmd("amx_prac ^"KAPALI^"")
        give_item(id"weapon_knife")
        set_user_health(id,1)
        set_user_health(tempid,1)
        give_item(tempid"weapon_knife")
        
        
if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -759ct_origin[1] = 1047ct_origin[2] = 100
            te_origin
[0] = -585te_origin[1] = 867te_origin[2] = 100
            set_user_origin
(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor
(0,"!y%s !nvs !y%s !nBicak Duellosu Yapiyorlar."challengerchallenged)
        
    
}
    else if(m3_duel[id])
    {
        g_pompa[id] = true
        g_pompa
[tempid] = true
        server_cmd
("block_zoom 0")
        server_cmd("amx_prac ^"KAPALI^"")
        cs_set_weapon_ammo(give_item(id"weapon_m3"), 1)
        cs_set_weapon_ammo(give_item(tempid"weapon_m3"), 1)
        
        ChatColor
(0,"!y%s !nvs !y%s !nPompali Duellosu Yapiyorlar."challengerchallenged)
    }
        
    
else if(deagle_duel[id])
    {
        server_cmd("block_zoom 0")
        server_cmd("amx_prac ^"KAPALI^"")
        deagle_duel[tempid] = true
        cs_set_weapon_ammo
(give_item(id"weapon_deagle"), 1)
        cs_set_weapon_ammo(give_item(tempid"weapon_deagle"), 1)
        
        
        
if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -1352ct_origin[1] = 271ct_origin[2] = 38
            te_origin
[0] = -1338te_origin[1] = -782te_origin[2] = 38
            set_user_origin
(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor
(0,"!y%s !nvs !y%s !nDeagle Duellosu Yapiyorlar."challengerchallenged)
    }
    else if(hsmod_duel[id])
    {
        server_cmd("block_zoom 0")
        server_cmd("amx_prac ^"ACIK^"")
        hsmod_duel[tempid] = true
        cs_set_weapon_ammo
(give_item(id"weapon_deagle"), 1)
        cs_set_weapon_ammo(give_item(tempid"weapon_deagle"), 1)
        
        
        
if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -1352ct_origin[1] = 271ct_origin[2] = 38
            te_origin
[0] = -1338te_origin[1] = -782te_origin[2] = 38
            set_user_origin
(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor
(0,"!y%s !nvs !y%s !nHsMod Duellosu Yapiyorlar."challengerchallenged)
    }
    else if(grenade_duel[id])
    {

        server_cmd("block_zoom 0")
        server_cmd("amx_prac ^"KAPALI^"")
        give_item(id"weapon_hegrenade")
        give_item(tempid"weapon_hegrenade")
        cs_set_user_bpammo(idCSW_HEGRENADE,get_pcvar_num(cvar_granadas_bpammo))        
        cs_set_user_bpammo
(tempidCSW_HEGRENADE,get_pcvar_num(cvar_granadas_bpammo))
        
        
        
if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -1756ct_origin[1] = -2526ct_origin[2] = 36
            te_origin
[0] = -3020te_origin[1] = -2529te_origin[2] = 36
            set_user_origin
(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor
(0,"!y%s !nvs !y%s !nBomba Duellosu Yapiyorlar."challengerchallenged)
    }
    else if(scout_duel[id])
    {

        server_cmd("block_zoom 0")
        server_cmd("amx_prac ^"KAPALI^"")
        give_item(id"weapon_scout")
        give_item(tempid"weapon_scout")
        cs_set_user_bpammo(idCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
        cs_set_user_bpammo(tempidCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
        
        
if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -2898ct_origin[1] = -2040ct_origin[2] = 37
            te_origin
[0] = -2908te_origin[1] = 905te_origin[2] = 37
            set_user_origin
(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor
(0,"!y%s !nvs !y%s !nZoom'lu Scout Duellosu Yapiyorlar."challengerchallenged)
    }
    else if(zoomscout_duel[id])
    {
        server_cmd("amx_prac ^"KAPALI^"")
        give_item(id"weapon_scout")
        give_item(tempid"weapon_scout")
        cs_set_user_bpammo(idCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
        cs_set_user_bpammo(tempidCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
        server_cmd("block_zoom 1")
        
        
        
if(equali(mapname,"some1s_jailbreak"))
        {
            ct_origin[0] = -2898ct_origin[1] = -2040ct_origin[2] = 37
            te_origin
[0] = -2908te_origin[1] = 905te_origin[2] = 37
            set_user_origin
(id,te_origin)
            set_user_origin(tempid,ct_origin)
        }
        
        ChatColor
(0,"!y%s !nvs !y%s !nZoom'suz Scout Duellosu Yapiyorlar."challengerchallenged)
    }
    
    duel_active 
true
    
    menu_destroy
(menu)
    return PLUGIN_HANDLED
}
    
public muzik_cal()
{
    if(g_muzik)
    {
        emit_sound(0CHAN_AUTOmuzikVOL_NORMATTN_NORM 0PITCH_NORM)
        g_muzik false
    
}
}

public 
beacon(id)
{
    if(cs_get_user_team(id) == CS_TEAM_CT && is_user_alive(id))
    {
        static origin[3]
        get_user_origin(idorigin)
        message_begin(MSG_BROADCASTSVC_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()
    }
    if(cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id))
    {
        static origin[3]
        get_user_origin(idorigin)
        message_begin(MSG_BROADCASTSVC_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_accessclientlevelcid) )
    {
        new arg];
        read_argv1argcharsmaxarg ) );
        
        
new newStatus clampstr_to_numarg ), 01  );
        
        
if( ForwardsEnabled newStatus )
        {
            if( newStatus  )
            {
                EnableHamForwardForwardSecAttackScout );
            }
            else
            {
                DisableHamForwardForwardSecAttackScout );
            }
            
            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(idprint_console"[AMXX] You do not have access to this command")
        return PLUGIN_CONTINUE
    
}
    new arg[8]
    read_argv(1arg7)
    
    
if(equali(arg"ACIK"))
    {
        set_user_hitzones(,02)
        g_aimpracon true
    
}
    else if(equali(arg"KAPALI"))
    {
        set_user_hitzones(00255)
        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
(02550, -1.00.4320.021.00.010.110)
    ShowSyncHudMsg(0g_msgsync"Duello'nun bitmesine SON %d"duelzaman--)
}


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

stock ChatColor(const id, const input[], any:...)
{
    new count 1players[32]
    static msg[191]
    vformat(msg190input3)
    
    replace_all
(msg190"!y""^4"// Green Color
    replace_all(msg190"!n""^1"// Default Color
    replace_all(msg190"!t""^3"// Team Color
    
    
if (idplayers[0] = id
    
else get_players(playerscount"ch")
    for (new 0counti++)
    {
        if (is_user_connected(players[i]))
        {
            message_begin(MSG_ONE_UNRELIABLEg_msgSayText_players[i])
            write_byte(players[i])
            write_string(msg)
            message_end()
        }
    }
}


/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 




#14
Son Düzenleme: 07-08-2017, Saat: 13:07, Düzenleyen: aLeX.
Kod:
if( (str_to_num( say ) <= 0) || ( jb_get_user_packs(id) < str_to_num(say) ) ) return PLUGIN_HANDLED;
str_to_num(say) sürekli kullanılması hoş değil. Sürekli inte dönüştürmek yerine int oluşturup içine kaydetmek doğru yoldur.


#15
@Epslion
@!berk!
@aLeX

Hala Bug Mevcut Plugini Kaldırınca Gidiyor Ama Yükleyince Geri Geliyor


#16
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <jail>
#define PLUGIN "Duello Plugini"
#define VERSION "2.0"
#define AUTHOR "Ak0"
#define charsmax(%1) (sizeof(%1)-1)

#define VSZAMAN 60

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

new 
duelzaman;
new 
g_bahismiktar33 ];

new 
bool:g_aimpracon false

new g_maxPlayersg_msgSayTextbeacon_sprite,g_alive_pris

new cvar_granadas_bpammocvar_scout_bpammocvar_effect

new bool:touch_weapons[33], bool:once[33], bool:player_challenged[33], bool:duel_active,bool:m3_duel[33],g_pompa[33],
bool:knife_duel[33] ,bool:g_muzik,bool:deagle_duel[33], bool:hsmod_duel[33], bool:grenade_duel[33], bool:scout_duel[33],bool:zoomscout_duel[33]

new 
tag[] = "WebAyyildiz.Com"

new g_msgsync;

new 
bunny;

new const 
muzik[] = "BlackMask-LR.wav"

const TASK_ID 1603;


new 
POMPA_MODEL[]  "models/BlackMask-Pompa.mdl"
/*================================================================================
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(PLUGINVERSIONAUTHOR)
 
   
    register_event
("HLTV""event_round_start""a""1=0""2=0")
 
   register_event("CurWeapon"    "Event_Change_Weapon""be""1=1")
 
   register_clcmd"bahis_miktari""bahis_soyle" );
 
   register_event"DeathMsg" "olunce" "a" );
 
   
    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")
 
   RegisterHam(Ham_Killed"player""saki")
 
       
    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""bahis_sor")
 
   register_clcmd("say !lr""bahis_sor")
 
   register_clcmd("say_team /lr""bahis_sor")
 
   register_clcmd("say_team !lr""bahis_sor")
 
   register_clcmd("say /vs""bahis_sor")
 
   register_clcmd("say !vs""bahis_sor")
 
   register_clcmd("say_team /vs""bahis_sor")
 
   register_clcmd("say_team !vs""bahis_sor")
 
   // Cvars
 
   cvar_granadas_bpammo register_cvar("jb_grenade_bpammo","90"
 
   cvar_scout_bpammo register_cvar("jb_scout_bpammo""90"
 
   cvar_effect register_cvar("jb_effect""2"
 
   
    g_maxPlayers 
get_maxplayers()
 
   
    g_msgSayText 
get_user_msgid("SayText")
 
   
    ForwardSecAttackScout 
RegisterHamHam_Weapon_SecondaryAttack"weapon_scout""OnSecondaryAttack" );
 
   
    ForwardsEnabled 
true;
 
   
    
}
public 
olunce( )
{
 
   new killer read_data);
 
   new victim read_data);
 
   
    if
g_bahis & ( << killer ) && get_user_teamkiller ) == && get_user_teamvictim ) == )
 
   {
 
       jb_set_user_packskillerjb_get_user_packskiller ) + miktarkiller ] );
 
       ChatColorkiller"!n[ !t%s !n] !yTebrikler vsyi kazandigin icin !n[ !t%d TL !n] !ykazandin."tagmiktarkiller ] );
 
       miktarkiller ] = 0;
 
       g_bahis &= ~( << killer );
 
       
    
}
 
   ifg_bahis & ( << killer ) && get_user_teamkiller ) == && get_user_teamvictim ) == )
 
   {
 
       miktarkiller ] = 0;
 
       g_bahis &= ~( << killer );
 
   }
}
public 
bahis_sorid )
{
 
   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], ctsnumtsnum 
            
            for 
(new id=1id <= g_maxPlayersid++)
 
           {
 
               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 == && ctsnum >= 1
 
            
                
                static opcion
[64]
 
               
                formatex
(opcioncharsmax(opcion),"\yWebAyyildiz.Com Gaming Bahis Menu")
 
               new iMenu menu_create(opcion"bahis_devam")
 
               
                formatex
(opcioncharsmax(opcion),"\wBahisli Lr At")
 
               menu_additem(iMenuopcion"1"   
                
                formatex
(opcioncharsmax(opcion),"\wLr At")
 
               menu_additem(iMenuopcion"2")
 
               
                menu_display
idiMenu );
 
           }
 
           else
            
{
 
               ChatColorid"!gASDSADASDSADS" )
 
           }
 
       }
 
   }
 
   return PLUGIN_HANDLED;
}
public 
bahis_devamidmenuitem )
{
 
   ifitem == MENU_EXIT )
 
   {
 
       menu_destroymenu );
 
       return PLUGIN_HANDLED;
 
   }
 
   new accesscallbackdata], name32 ];
 
   menu_item_getinfomenuitemaccessdata5name31 callback );
 
   
    new key 
str_to_numdata );

 
   switchkey )
 
   {
 
       case 1 :
 
       {
 
           console_cmdid"messagemode bahis_miktari" )
 
       }
 
       case 2 :
 
       {
 
           duel_menuid );
 
       }
 
   }
 
   menu_destroymenu );
 
   return PLUGIN_HANDLED;
}
public 
bahis_soyleid )
{
 
   new say192 ];
 
   read_argssay191 );
 
   remove_quotessay );
 
   if( !is_str_numsay ) && equal(say"") )
 
   {
 
       ChatColorid"!n[ !t%s !n] !yUzgunum sadece !n[ !trakam !n] !yyazabilirsiniz"tag );
 
       console_cmdid"messagemode bahis_miktari" );
 
       return PLUGIN_HANDLED;
 
   }
 
   ifstr_to_numsay ) > 20 )
 
   {
 
       ChatColorid"!n[ !t%s !n] !yUzgunum maksimum !n[ !t20 TL !n] !yyatirabilirsiniz"tag );
 
       console_cmdid"messagemode bahis_miktari" );
 
       return PLUGIN_HANDLED;
 
   }
 
   
    if
( (str_to_numsay ) <= 0) || ( jb_get_user_packs(id) < str_to_num(say) ) ) return PLUGIN_HANDLED;
 
   
    jb_set_user_packs
idjb_get_user_packsid ) - str_to_numsay ) );
 
   miktarid ] = str_to_numsay );
 
   ChatColorid"!n[ !t%s !n] !yBahise !n[ !t%d TL !n] !yyatirdin.Kazanirsan !n[ !t%d TL !n] !ykazanicaksin"tag,str_to_numsay ), miktarid ] );
 
   g_bahis |= ( << id );
 
   duel_menuid );
 
   return PLUGIN_HANDLED;
}
 
   
public Event_Change_Weapon(id)
{
 
   new weaponID read_data(2)
 
   new iwpnwclipwammo
    iwpn 
get_user_weapon(idwclipwammo)
 
   get_user_ammo(idiwpnwammowclip)
 
   
    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()
{
 
   duel_active false
    g_aimpracon 
false
    remove_task
(TASK_ID);
 
   set_cvar_num("bh_enabled",1)
 
   server_cmd("block_zoom 0")
 
   server_cmd("amx_prac ^"KAPALI^"")
 
   server_cmd("sv_maxvelocity 99999999")
 
   server_cmd("sv_maxspeed 99999999")
 
   server_cmd("sv_airaccelerate 99999999")
 
   server_cmd("sv_airmove 99999999")
 
   new players[32],inum,id
    get_players
(players,inum)
 
   for(new i;i<inum;i++)
 
   {
 
       id players[i]
 
       g_pompa[id] = false
        miktar
id ] = 0;
 
       g_bahis &= ~( << id );
 
   }
 
       
}
/*================================================================================
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 
    knife_duel
[id] = false
    m3_duel
[id] = false
    deagle_duel
[id] = false
    hsmod_duel
[id] = false
    grenade_duel
[id] = false
    scout_duel
[id] = false
    zoomscout_duel
[id] = false
    player_challenged
[id] = false
    miktar
id ] = 0;
 
   g_bahis &= ~( << id );
}
public 
Check()
{
 
   new players[32],teroralv
    get_players
(players,teroralv,"ae","TERRORIST")
 
   
    g_alive_pris 
teroralv
    for
(new i;i<=get_maxplayers();i++)
 
   {
 
       if(g_alive_pris == && is_user_alive(i))
 
       {
 
           console_cmd(i,"say /lr")
 
       }
 
   }
    
public fw_touch_weapon(weaponid)
{
 
   if (!is_user_connected(id))
 
       return HAM_IGNORED;
 
   
    new players
[32], pnumtempid;
 
   get_players(playerspnum"a");
 
   for( new ii<pnumi++ )
 
          
        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(playerCSW_DEAGLE1)
 
   }
 
   else if(hsmod_duel[player])
 
   {
 
       cs_set_user_bpammo(playerCSW_DEAGLE1)
 
   }
}

public 
fw_player_killed(victimattackershouldgib)
{
 
   if(! (1<=victim<=g_maxPlayers && 1<=attacker<=g_maxPlayers))
 
   {
 
       return HAM_IGNORED
    
}
 
   new name[32]
 
   get_user_name(attackername31)
 
   
    if
(duel_active)
 
   {
 
       if(cs_get_user_team(victim) == CS_TEAM_CT && player_challenged[victim])
 
       {
 
           knife_duel[attacker] = false
            m3_duel
[attacker] = false
            deagle_duel
[attacker] = false
            hsmod_duel
[attacker] = false
            grenade_duel
[attacker] = false
            scout_duel
[attacker] = false
            zoomscout_duel
[attacker] = false
            once
[attacker] = false
            strip_user_weapons
(attacker)
 
           give_item(attacker"weapon_knife")
 
           set_user_rendering(attacker)
 
           bahis_sor(attacker)
 
           remove_task(TASK_ID);
 
       }
 
       else if(cs_get_user_team(victim) == CS_TEAM_CT && !player_challenged[victim])
 
       {
 
           set_task(0.4"kill_player"attacker)
 
           set_hudmessage02550, -1.00.4025.08.00.00.010)
 
           show_hudmessage(0"%s Oldurecek gardiyan birakmadin tebrik ederiz)"name)
 
           
        
}
 
   }
 
   remove_task(attacker)
 
   remove_task(victim)
 
   return HAM_IGNORED
}
public 
saki(victimattackershouldgib)
{
 
   if(! (1<=victim<=g_maxPlayers && 1<=attacker<=g_maxPlayers))
 
   {
 
       return HAM_IGNORED
    
}
 
   if(get_user_team(attacker) == && get_user_team(victim) == 1)
 
   {
 
       new players[32],teroralv
        get_players
(players,teroralv,"ae","TERRORIST")
 
       g_alive_pris teroralv
        for
(new i;i<=get_maxplayers();i++)
 
       {
 
           if(g_alive_pris == && is_user_alive(i) && get_user_team(i) == 1)
 
           {
 
               bahis_sor(i)
 
           }
 
       }
 
   }
 
   if(get_user_team(attacker) == && get_user_team(victim) == 1)
 
   {
 
       new players[32],teroralv
        get_players
(players,teroralv,"ae","TERRORIST")
 
       g_alive_pris teroralv
        for
(new i;i<=get_maxplayers();i++)
 
       {
 
           if(g_alive_pris == && is_user_alive(i))
 
           {
 
               bahis_sor)
 
           }
 
       }
 
   }
 
   return HAM_IGNORED
}

 
   
public kill_player(id)
{
 
   user_kill(id)
}

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

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], ctsnumtsnum 
            
            for 
(new id=1id <= g_maxPlayersid++)
 
           {
 
               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 == && ctsnum >= 1
 
            
                
                static opcion
[64]
 
               
                formatex
(opcioncharsmax(opcion),"\yWebAyyildiz.Com Gaming sana Basarilar diliyor:)")
 
               new iMenu menu_create(opcion"sub_duel_menu")
 
               
                formatex
(opcioncharsmax(opcion),"\wBICAK VS")
 
               menu_additem(iMenuopcion"1"   
                
                formatex
(opcioncharsmax(opcion),"\wPOMPALI VS")
 
               menu_additem(iMenuopcion"2")
 
               
                formatex
(opcioncharsmax(opcion),"\wBOMBA VS")
 
               menu_additem(iMenuopcion"3"   
                
                formatex
(opcioncharsmax(opcion),"\wSCOUT WS [ZOOMLU,ZOOMSUZ")
 
               menu_additem(iMenuopcion"4")
 
               
                formatex
(opcioncharsmax(opcion),"\wHS mODE VS[SADECE DEAGLE]")
 
               menu_additem(iMenuopcion"5")
 
               
                formatex
(opcioncharsmax(opcion),"\wDEAGLE VS")
 
               menu_additem(iMenuopcion"6")
 
               
                
                menu_setprop
(iMenuMPROP_EXITMEXIT_ALL)
 
               menu_display(idiMenu0)
 
               
            
}
 
           else if    (tsnum == && ctsnum 1)
 
           {
 
               ChatColor(id,"!y%s !nMalesef Yasayan !yCT!n yok"tag
 
           }
 
           else if    (tsnum 1)
 
           {
 
               ChatColor(id,"!y%s !nSadece SON'a kalan mahkum DUELLO yapabilir!",tag)
 
           }
 
       }
 
       else
        
{
 
           ChatColor(id,"!y%s !nBu komut sadece !yMAHKUMLAR!n icindir.",tag
 
       }
 
   }
 
   else
    
{
 
       ChatColor(id,"!y%s !nKill the !yCT!n and you can open the menu.",tag)
 
   }
 
   return PLUGIN_HANDLED
}

public 
sub_duel_menu(idmenuitem)
{
 
   
    if 
(item == MENU_EXIT)
 
   {
 
       menu_destroy(menu)
 
       return PLUGIN_HANDLED
    
}
 
   
    new Data
[6], Name[64]
 
   new AccessCallback
    
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
 
   
    new Key 
str_to_num(Data)
 
   
    switch 
(Key)
 
   {
 
       case 1:
 
          
            knife_duel
[id] = true
            choose_enemy
(id)
 
       }
 
       case 2
 
       {
 
           m3_duel[id] = true
            choose_enemy
(id)
 
       }
 
       case 3
 
       {
 
           grenade_duel[id] = true
            choose_enemy
(id)
 
       }
 
       case 4
 
       {
 
           Scoutt_Duello(id)
 
       }
 
       case 5
 
       {
 
           hsmod_duel[id] = true
            choose_enemy
(id)
 
       }
 
       case 6
 
       {
 
           deagle_duel[id] = true
            choose_enemy
(id)
 
       }
 
   }
 
   
    menu_destroy
(menu   
    return PLUGIN_HANDLED
}

public 
Scoutt_Duello(id)
{
 
   static Item[64]
 
   
    formatex
(Itemcharsmax(Item),"\yScout Duello"
 
   new Menu menu_create(Item"scout_devam")
 
   
    formatex
(Itemcharsmax(Item),"\wZoomlu Scout")
 
   menu_additem(MenuItem"1")
 
   
    formatex
(Itemcharsmax(Item),"\wZoomsuz Scout")
 
   menu_additem(MenuItem"2")
 
   
    
    menu_setprop
(MenuMPROP_EXITMEXIT_ALL)
 
   menu_display(idMenu)
 
   
    return PLUGIN_HANDLED
}

public 
scout_devam(id,amenu,item)
{
 
   if(item == MENU_EXIT)
 
   {
 
       menu_destroy(amenu)
 
       return PLUGIN_HANDLED    
    
}
 
   new accescallbackdata[6], iname[64]
 
   menu_item_getinfo(amenuitemaccesdata5iname63,callback)
 
   if(str_to_num(data) == 1)
 
   {
 
       scout_duel[id] = true
        choose_enemy
(id)
 
   }
 
   else if(str_to_num(data) == 2)
 
   {
 
       zoomscout_duel[id] = true
        choose_enemy
(id)
 
   }
 
   menu_destroy(amenu)
 
   return PLUGIN_HANDLED
}
/*================================================================================
Menu of challenges                
=================================================================================*/

public choose_enemy(id)
{
 
   static opcion[64]
 
   
    formatex
(opcioncharsmax(opcion),"\yDuello Atilicak Gardiyani Sec")
 
   new iMenu menu_create(opcion"sub_choose_enemy")
 
   
    new players
[32], pnumtempid
    new szName
[32], szTempid[10]
 
   
    get_players
(playerspnum"a")
 
   
    for
( new ii<pnumi++ )
 
   {
 
       tempid players[i]
 
       
        if 
(cs_get_user_team(tempid) != CS_TEAM_CT)
 
       {
 
           continue
        
}
 
       
        get_user_name
(tempidszName31)
 
       num_to_str(tempidszTempid9)
 
       menu_additem(iMenuszNameszTempid0)
 
   }
 
   
    menu_display
(idiMenu)
 
   return PLUGIN_HANDLED
}

public 
sub_choose_enemy(idmenuitem)
{
 
   if(item == MENU_EXIT || !is_user_alive(id))
 
   {
 
       menu_destroy(menu)
 
       return PLUGIN_HANDLED
    
}
 
   
    new Data
[6], Name[64]
 
   new AccessCallback
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
 
   
    new tempid 
str_to_num(Data)
 
   if(!is_user_alive(tempid))
 
   {
 
       return PLUGIN_HANDLED
    
}
 
   
    new mapname
[32], challenger[32], challenged[32], ct_origin[3], te_origin[3]
 
   
    get_mapname
(mapname,31)
 
   get_user_name(idchallenger31)
 
   get_user_name(tempidchallenged31)
 
   
    
// strip weapons
 
   strip_user_weapons(id)
 
   strip_user_weapons(tempid)
 
   
    
// health
 
   set_user_health(id100)
 
   set_user_health(tempid100)
 
   
    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(idkRenderFxGlowShell25000kRenderNormal20   
            set_user_rendering
(tempidkRenderFxGlowShell00250kRenderNormal20)
 
       }
 
       case 1// beacon
 
       {
 
           set_task(1.0"beacon"id)
 
           set_task(1.0"beacon"tempid)
 
       }
 
       case 2// glow n' beacon
 
       {
 
           set_user_rendering(idkRenderFxGlowShell25000kRenderNormal20   
            set_task
(1.0"beacon"id)
 
           set_user_rendering(tempidkRenderFxGlowShell00250kRenderNormal20)
 
           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
(knife_duel[id])
 
   {
 
       server_cmd("block_zoom 0")
 
       server_cmd("amx_prac ^"KAPALI^"")
 
       give_item(id"weapon_knife")
 
       set_user_health(id,1)
 
       set_user_health(tempid,1)
 
       give_item(tempid"weapon_knife")
 
       
        if
(equali(mapname,"some1s_jailbreak"))
 
       {
 
           ct_origin[0] = -759ct_origin[1] = 1047ct_origin[2] = 100
            te_origin
[0] = -585te_origin[1] = 867te_origin[2] = 100
            set_user_origin
(id,te_origin)
 
           set_user_origin(tempid,ct_origin)
 
       }
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nBicak Duellosu Yapiyorlar."challengerchallenged)
 
       
    
}
 
   else if(m3_duel[id])
 
   {
 
       g_pompa[id] = true
        g_pompa
[tempid] = true
        server_cmd
("block_zoom 0")
 
       server_cmd("amx_prac ^"KAPALI^"")
 
       cs_set_weapon_ammo(give_item(id"weapon_m3"), 1)
 
       cs_set_weapon_ammo(give_item(tempid"weapon_m3"), 1)
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nPompali Duellosu Yapiyorlar."challengerchallenged)
 
   }
 
       
    else 
if(deagle_duel[id])
 
   {
 
       server_cmd("block_zoom 0")
 
       server_cmd("amx_prac ^"KAPALI^"")
 
       deagle_duel[tempid] = true
        cs_set_weapon_ammo
(give_item(id"weapon_deagle"), 1)
 
       cs_set_weapon_ammo(give_item(tempid"weapon_deagle"), 1)
 
       
        
        if
(equali(mapname,"some1s_jailbreak"))
 
       {
 
           ct_origin[0] = -1352ct_origin[1] = 271ct_origin[2] = 38
            te_origin
[0] = -1338te_origin[1] = -782te_origin[2] = 38
            set_user_origin
(id,te_origin)
 
           set_user_origin(tempid,ct_origin)
 
       }
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nDeagle Duellosu Yapiyorlar."challengerchallenged)
 
   }
 
   else if(hsmod_duel[id])
 
   {
 
       server_cmd("block_zoom 0")
 
       server_cmd("amx_prac ^"ACIK^"")
 
       hsmod_duel[tempid] = true
        cs_set_weapon_ammo
(give_item(id"weapon_deagle"), 1)
 
       cs_set_weapon_ammo(give_item(tempid"weapon_deagle"), 1)
 
       
        
        if
(equali(mapname,"some1s_jailbreak"))
 
       {
 
           ct_origin[0] = -1352ct_origin[1] = 271ct_origin[2] = 38
            te_origin
[0] = -1338te_origin[1] = -782te_origin[2] = 38
            set_user_origin
(id,te_origin)
 
           set_user_origin(tempid,ct_origin)
 
       }
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nHsMod Duellosu Yapiyorlar."challengerchallenged)
 
   }
 
   else if(grenade_duel[id])
 
   {

 
       server_cmd("block_zoom 0")
 
       server_cmd("amx_prac ^"KAPALI^"")
 
       give_item(id"weapon_hegrenade")
 
       give_item(tempid"weapon_hegrenade")
 
       cs_set_user_bpammo(idCSW_HEGRENADE,get_pcvar_num(cvar_granadas_bpammo))        
        cs_set_user_bpammo
(tempidCSW_HEGRENADE,get_pcvar_num(cvar_granadas_bpammo))
 
       
        
        if
(equali(mapname,"some1s_jailbreak"))
 
       {
 
           ct_origin[0] = -1756ct_origin[1] = -2526ct_origin[2] = 36
            te_origin
[0] = -3020te_origin[1] = -2529te_origin[2] = 36
            set_user_origin
(id,te_origin)
 
           set_user_origin(tempid,ct_origin)
 
       }
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nBomba Duellosu Yapiyorlar."challengerchallenged)
 
   }
 
   else if(scout_duel[id])
 
   {

 
       server_cmd("block_zoom 0")
 
       server_cmd("amx_prac ^"KAPALI^"")
 
       give_item(id"weapon_scout")
 
       give_item(tempid"weapon_scout")
 
       cs_set_user_bpammo(idCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
 
       cs_set_user_bpammo(tempidCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
 
       
        if
(equali(mapname,"some1s_jailbreak"))
 
       {
 
           ct_origin[0] = -2898ct_origin[1] = -2040ct_origin[2] = 37
            te_origin
[0] = -2908te_origin[1] = 905te_origin[2] = 37
            set_user_origin
(id,te_origin)
 
           set_user_origin(tempid,ct_origin)
 
       }
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nZoom'lu Scout Duellosu Yapiyorlar."challengerchallenged)
 
   }
 
   else if(zoomscout_duel[id])
 
   {
 
       server_cmd("amx_prac ^"KAPALI^"")
 
       give_item(id"weapon_scout")
 
       give_item(tempid"weapon_scout")
 
       cs_set_user_bpammo(idCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
 
       cs_set_user_bpammo(tempidCSW_SCOUTget_pcvar_num(cvar_scout_bpammo))
 
       server_cmd("block_zoom 1")
 
       
        
        if
(equali(mapname,"some1s_jailbreak"))
 
       {
 
           ct_origin[0] = -2898ct_origin[1] = -2040ct_origin[2] = 37
            te_origin
[0] = -2908te_origin[1] = 905te_origin[2] = 37
            set_user_origin
(id,te_origin)
 
           set_user_origin(tempid,ct_origin)
 
       }
 
       
        ChatColor
(0,"!y%s !nvs !y%s !nZoom'suz Scout Duellosu Yapiyorlar."challengerchallenged)
 
   }
 
   
    duel_active 
true
    
    menu_destroy
(menu)
 
   return PLUGIN_HANDLED
}
 
   
public muzik_cal()
{
 
   if(g_muzik)
 
   {
 
       emit_sound(0CHAN_AUTOmuzikVOL_NORMATTN_NORM 0PITCH_NORM)
 
       g_muzik false
    
}
}

public 
beacon(id)
{
 
   if(cs_get_user_team(id) == CS_TEAM_CT && is_user_alive(id))
 
   {
 
       static origin[3]
 
       get_user_origin(idorigin)
 
       message_begin(MSG_BROADCASTSVC_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()
 
   }
 
   if(cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id))
 
   {
 
       static origin[3]
 
       get_user_origin(idorigin)
 
       message_begin(MSG_BROADCASTSVC_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 )
{
 
   ifcmd_accessclientlevelcid) )
 
   {
 
       new arg];
 
       read_argv1argcharsmaxarg ) );
 
       
        new newStatus 
clampstr_to_numarg ), 01  );
 
       
        if
ForwardsEnabled newStatus )
 
       {
 
           ifnewStatus  )
 
           {
 
               EnableHamForwardForwardSecAttackScout );
 
           }
 
           else
            
{
 
               DisableHamForwardForwardSecAttackScout );
 
           }
 
           
            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(idprint_console"[AMXX] You do not have access to this command")
 
       return PLUGIN_CONTINUE
    
}
 
   new arg[8]
 
   read_argv(1arg7)
 
   
    if
(equali(arg"ACIK"))
 
   {
 
       set_user_hitzones(,02)
 
       g_aimpracon true
    
}
 
   else if(equali(arg"KAPALI"))
 
   {
 
       set_user_hitzones(00255)
 
       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
(02550, -1.00.4320.021.00.010.110)
 
   ShowSyncHudMsg(0g_msgsync"Duello'nun bitmesine SON %d"duelzaman--)
}


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

stock ChatColor(const id, const input[], any:...)
{
 
   new count 1players[32]
 
   static msg[191]
 
   vformat(msg190input3)
 
   
    replace_all
(msg190"!y""^4"// Green Color
 
   replace_all(msg190"!n""^1"// Default Color
 
   replace_all(msg190"!t""^3"// Team Color
 
   
    if 
(idplayers[0] = id
    else get_players
(playerscount"ch")
 
   for (new 0counti++)
 
   {
 
       if (is_user_connected(players[i]))
 
       {
 
           message_begin(MSG_ONE_UNRELIABLEg_msgSayText_players[i])
 
           write_byte(players[i])
 
           write_string(msg)
 
           message_end()
 
       }
 
   }






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
Silinmiş Konu   | Steam , Whatsapp icon yardım Brs.16 3 409 18-09-2020, Saat: 14:50
Son Yorum: JwG
Silinmiş Konu   | [yardım] CS 1.6 THOOK MelihCetinn 1 195 14-09-2020, Saat: 10:28
Son Yorum: By.KinG
Silinmiş Konu   | sunucu iletişim hatası Kedi 1 293 15-01-2020, Saat: 16:44
Son Yorum: By.KinG
Silinmiş Konu   | hata yardım !!! Mikkel 2 332 04-01-2020, Saat: 16:49
Son Yorum: By.KinG
Silinmiş Konu   | eklenti acil yardım Mikkel 1 294 04-01-2020, Saat: 14:23
Son Yorum: By.KinG

Task