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 ?

Silinmiş Konu   | Eklenti Sadece Jail Maplarında Çalışsın

Konu

#1
İsteğim Eklentinin Jail Maplarında Çalışmasıdır Teşekkürler @!berk! Gülücük


.sma lrmusicli.v2.sma (Dosya Boyutu: 14.46 KB | İndirme Sayısı: 2)
#2

KONUYA ETIKET ATMAK YASAKTIR BIR SONRAKI ETIKETINIZE UYARI VERMEK ZORUNDA KALACAĞIZ.


Buyur.

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

#define PLUGIN "Duello Plugini"
#define VERSION "3.0"
#define AUTHOR "Edit:NOVEMBER"

#define VSZAMAN 60

new const muzik[] = "lr_newsound.wav"


new duelzaman;

new 
g_maxPlayersg_msgSayTextbeacon_sprite

new cvar_scout_bpammocvar_effect

new bool:touch_weapons[33], bool:once[33], bool:player_challenged[33], bool:duel_active,
bool:awp_duel[33] ,bool:deagle_duel[33], bool:ak47_duel[33], bool:scout_duel[33];

new 
tag[] = " ReaLFriends "

new g_msgsync;

new 
bunny;

const 
TASK_ID 1603;

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

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

public 
plugin_init()
{
    new 
map 32  ]
    
get_mapname(map,31);
    if((
containi(map,"jail") == -1) && (containi(map,"jail_") == -1)) return
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
register_event("DeathMsg""eDeath""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")
        
    
g_msgsync CreateHudSyncObj();
    
    
bunny    register_cvar("vs_bunny","1");    
    
    
register_forward(FM_CmdStart,"fw_cmdstart",1)
    
    
register_clcmd("say /lr""duel_menu")
    
register_clcmd("say .lr""duel_menu")
    
    
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")
}
public 
event_round_start()
{
    
remove_task(TASK_ID);
    
set_cvar_num("mp_friendlyfire",0)
    
set_cvar_num("bh_enabled",1)
}

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 
    awp_duel
[id] = false
    deagle_duel
[id] = false
    scout_duel
[id] = false
    ak47_duel
[id] = false
    player_challenged
[id] = false
}

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)
    }
    if(
ak47_duel[player])
    {
        
        
cs_set_user_bpammo(playerCSW_AK471)
    }
    if(
awp_duel[player])
    {
        
        
cs_set_user_bpammo(playerCSW_AWP90)
    }
}

public 
fw_player_killed(victimattackershouldgib)
{
    new 
name[32]
    
get_user_name(attackername31)
    
    if(
duel_active)
    {
        if(
cs_get_user_team(victim) == CS_TEAM_CT && player_challenged[victim])
        {
            
ak47_duel[attacker] = false
            deagle_duel
[attacker] = false
            awp_duel
[attacker] = false
            scout_duel
[attacker] = false
            once
[attacker] = false
            set_user_rendering
(attacker)
            
duel_menu(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 helal :)"name)
            
        }
    }
    
remove_task(attacker)
    
remove_task(victim)
}

public 
kill_player(id)
{
    
user_kill(id)
}

public 
eDeath()
{
    new 
terorsayisi,ctsayisiidids;
    
terorsayisi 0;
    
ctsayisi 0;
    for(
id 1id<33id++)
    {
        if(
is_user_connected(id) && is_user_alive(id))
        {
            switch(
get_user_team(id))
            {
                case 
terorsayisi++
                    case 
ctsayisi++
                }
        }
    }
    
    if(
terorsayisi == 1)
    {
        for(
ids 1ids<33ids++)
        {
            if(
is_user_connected(ids) && is_user_alive(ids) && get_user_team(ids) == 1)
            {
                
duel_menu(ids)
                
ChatColor(0,"!t[!g%s!t] !nHayatta Kalan !gTek bir Mahkum !nvar !"tag)            
            }    
        }
    }        
}
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),"\d[ \rReaLFriends \d] \ySilahini Sec")
                new 
iMenu menu_create(opcion"sub_duel_menu")
                
                
formatex(opcioncharsmax(opcion),"\d[ \rReaLFriends \d] \yAWP Duellosu")
                
menu_additem(iMenuopcion"1")    
                
                
formatex(opcioncharsmax(opcion),"\d[ \rReaLFriends \d] \ySCOUT Duellosu")
                
menu_additem(iMenuopcion"2")
                
                
formatex(opcioncharsmax(opcion),"\d[ \rReaLFriends \d] \yAK47 Duellosu")
                
menu_additem(iMenuopcion"3")    
                
                
formatex(opcioncharsmax(opcion),"\d[ \rReaLFriends \d] \yDEAGLE Duellosu")
                
menu_additem(iMenuopcion"4")
                        
                
                
menu_setprop(iMenuMPROP_EXITMEXIT_ALL)
                
menu_display(idiMenu0)
                
            }
            else if    (
tsnum == && ctsnum 1)
            {
                
ChatColor(id,"!t[!g%s!t] !nMalesef Yasayan !gCT!n yok"tag
            }
            else if    (
tsnum 1)
            {
                
ChatColor(id,"!t[!g%s't] !nSadece SON'a kalan !tMahkum DUELLO !nyapabilir!",tag)
            }
        }
        else
        {
            
ChatColor(id,"!t[!g%s!t] !nBu komut sadece !yMAHKUMLAR!n icindir.",tag
        }
    }
    else
    {
        
ChatColor(id,"!t[!g%s!t] !nBu Menuyu Acmak icin once !gDuelloyu bitirmelisin.",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:
        {    
            
awp_duel[id] = true
            deagle_duel
[id] = false
            ak47_duel
[id] = false
            scout_duel
[id] = false
            choose_enemy
(id)
        }
        case 
2
        {
            
scout_duel[id] = true
            deagle_duel
[id] = false
            awp_duel
[id] = false
            ak47_duel
[id] = false
            choose_enemy
(id)
        }
        case 
3
        {
            
deagle_duel[id] = false
            awp_duel
[id] = false
            scout_duel
[id] = false
            ak47_duel
[id] = true
            choose_enemy
(id)
        }
        case 
4
        {
            
ak47_duel[id] = false
            deagle_duel
[id] = true
            scout_duel
[id] = false
            awp_duel
[id] = false
            choose_enemy
(id)
        }
    }
    
    
menu_destroy(menu)    
    return 
PLUGIN_HANDLED
}

public 
choose_enemy(id)
{
    static 
opcion[64]
    
    
formatex(opcioncharsmax(opcion),"\d[ \rReaLFriends \d] \yRakibini 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 )
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
Data[6], Name[64]
    new 
AccessCallback
    menu_item_getinfo
(menuitemAccessData,5Name63Callback)
    
    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(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)
    {
        
set_cvar_num("bh_enabled",1)
    } 
    else 
    {
        
set_cvar_num("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[tempid] = true
    once
[id] = true 
    touch_weapons
[id] = true
    touch_weapons
[tempid] = true
    
    
if(ak47_duel[id])
    {
        
ak47_duel[tempid] = true
        cs_set_weapon_ammo
(give_item(id"weapon_ak47"), 1)
        
cs_set_weapon_ammo(give_item(tempid"weapon_ak47"), 1)
    
        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,"!t[!g%s!t] !n[!g%s!n] !t& !n[!g%s!n] !tAK47 !nDuellosu Yapiyorlar."tagchallengerchallenged)
        
    }
    else if(
deagle_duel[id])
    {
        
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,"!t[!g%s!t] !n[!g%s!n] !t& !n[!g%s!n] !tDEAGLE !nDuellosu Yapiyorlar."tagchallengerchallenged)
    }
    else if(
awp_duel[id])
    {
        
awp_duel[tempid] = true
        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] = -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,"!t[!g%s!t] !n[!g%s!n] !t& !n[!g%s!n] !tAWP !nDuellosu Yapiyorlar."tagchallengerchallenged)
    
    }
    else if(
scout_duel[id])
    {
        
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,"!t[!g%s!t] !n[!g%s!n] !t& !n[!g%s!n] !tSCOUT !nDuellosu Yapiyorlar."tagchallengerchallenged)
        
    }
    
    
duel_active true
    emit_sound
(0CHAN_AUTOmuzikVOL_NORMATTN_NORM 0PITCH_NORM)
    
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}

public 
beacon(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
        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()
    }
    else
    {
        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 
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(4225585 0.110.3020.14.00.020.02, -1)
    
ShowSyncHudMsg(0g_msgsync"Duello'nun bitmesine %d saniye kaldi!^n- ReaLFriends` -"duelzaman--)    
}


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

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^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()
        }
    }




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
#3
Anladım Deniyeceğim Plugini Teşekkürler


#4
Forum kurallarına aykırı olduğun için konunuz silinmiştir .


Bir Hata Söz Konusu Olursa Bizlere Ulaşarak Düzeltebilirsiniz.






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   | Eklenti İstek Kuralları! ITenGriTR 1 1,202 18-09-2020, Saat: 12:38
Son Yorum: TheFlash
Silinmiş Konu   | Eklenti Edit (Acil) theWinter 2 319 13-01-2020, Saat: 18:32
Son Yorum: By.KinG
Silinmiş Konu   | eklenti acil yardım Mikkel 1 286 04-01-2020, Saat: 14:23
Son Yorum: By.KinG
Silinmiş Konu   | MAPA ÖZEL EKLENTİ AYARLAMAK goodfeelaras 1 302 21-12-2019, Saat: 08:46
Son Yorum: By.KinG
Silinmiş Konu   | EKLENTİ İSTEK ʢ۩ʡ ☰ Furkan ☰ ʢ۩ʡ 2 311 16-12-2019, Saat: 21:16
Son Yorum: By.KinG

Task