⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
🇹🇷 TR Lokasyon | 🛡️ Gelişmiş DDoS Koruması | ⚡ Düşük Ping | 🎧 Kesintisiz TS3 | Hostlar
Webailesi.comWebailesi.com

TE Takımında C4 Best Players Hk.

Konu

#1
Merhabalar ;


@By.KinG daha önce böyle bir eklenti paylaşmıştı.  https://www.webailesi.com/konu-reapi-t-takimdaki-en-iyi-oyunculara-c4-verme-eklentisi-by-king-14078

Fakat plugini denediğimde hiç bir şekilde çalışmıyor ve plugin.ini üste yazdığımda da değişen bir şey olmadı. Kendisi artık eklenti ile ilgilenmediğinden bu konu ile ilgili bir istek konusu açtım.

TE Takımında C4 Bombasını en iyi frag yapan 5 oyuncu arasında her el random olacak şekilde yapabilecek var mıdır ?

Kolaylıklar dilerim.
.smaC4_For_Best_Players.sma(Dosya Boyutu: 1,48 KB | İndirme Sayısı: 3)
Stand Back Warrior's   | ip: cs.sbwpro.com | ts3: ts3.sbwpro.com
#2
Deneyin:

PHP Kod:
#include <amxmodx>
#include <reapi>

new const PLUGIN[] = "C4_For_Best_Players";
new const 
VERSION[] = "Premium";
new const 
AUTHOR[] = "By.KinG";

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_logevent("elbasi",2,"1=Round_Start")
}

public 
elbasi()
{
    new 
Players[32], Num_Alive_TNew_IDBest_ID_1Best_ID_2Best_ID_3Best_ID_4Best_ID_5Random_ID;
    
get_players(PlayersNum_Alive_T"acehi""TERRORIST");
    
    for(new 
iNum_Alive_Ti++)
    {
        
New_ID Players[i];
        
        if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_1var_frags))
        {
            
Best_ID_1 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_2var_frags))
        {
            
Best_ID_2 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_3var_frags))
        {
            
Best_ID_3 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_4var_frags))
        {
            
Best_ID_4 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_5var_frags))
        {
            
Best_ID_5 New_ID;
        }
    }
    
    switch(
random_num(15))
    {
        case 
:
        {
            
Random_ID Best_ID_1;
        }
        case 
:
        {
            
Random_ID Best_ID_2;
        }
        case 
:
        {
            
Random_ID Best_ID_3;
        }
        case 
:
        {
            
Random_ID Best_ID_4;
        }
        case 
:
        {
            
Random_ID Best_ID_5;
        }
    }
    
    if(
rg_give_item(Random_ID"weapon_c4") > 0)
    {
        return 
HC_SUPERCEDE;
    }
    
    return 
HC_CONTINUE;

#3
(21-05-2023, 21:54)Smash Adlı Kullanıcıdan Alıntı: Deneyin:

PHP Kod:
#include <amxmodx>
#include <reapi>

new const PLUGIN[] = "C4_For_Best_Players";
new const 
VERSION[] = "Premium";
new const 
AUTHOR[] = "By.KinG";

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_logevent("elbasi",2,"1=Round_Start")
}

public 
elbasi()
{
    new 
Players[32], Num_Alive_TNew_IDBest_ID_1Best_ID_2Best_ID_3Best_ID_4Best_ID_5Random_ID;
    
get_players(PlayersNum_Alive_T"acehi""TERRORIST");
    
    for(new 
iNum_Alive_Ti++)
    {
        
New_ID Players[i];
        
        if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_1var_frags))
        {
            
Best_ID_1 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_2var_frags))
        {
            
Best_ID_2 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_3var_frags))
        {
            
Best_ID_3 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_4var_frags))
        {
            
Best_ID_4 New_ID;
        }
        else if(
get_entvar(New_IDvar_frags) >= get_entvar(Best_ID_5var_frags))
        {
            
Best_ID_5 New_ID;
        }
    }
    
    switch(
random_num(15))
    {
        case 
:
        {
            
Random_ID Best_ID_1;
        }
        case 
:
        {
            
Random_ID Best_ID_2;
        }
        case 
:
        {
            
Random_ID Best_ID_3;
        }
        case 
:
        {
            
Random_ID Best_ID_4;
        }
        case 
:
        {
            
Random_ID Best_ID_5;
        }
    }
    
    if(
rg_give_item(Random_ID"weapon_c4") > 0)
    {
        return 
HC_SUPERCEDE;
    }
    
    return 
HC_CONTINUE;

Değişen bir şey olmadı bu seferde bazı ellerde 2 adet TE Takımına C4 vermeye başladı.
Stand Back Warrior's   | ip: cs.sbwpro.com | ts3: ts3.sbwpro.com
#4
Daha önce hiç çalışmayıp, bu sefer çalışmaya mı başladı? İf sorgularında mantık hatası var, farkındayım. Lütfen sorunları ilet.
Son Düzenleme: 22-05-2023, 01:11, Düzenleyen: Smash.
#5
(22-05-2023, 01:09)Smash Adlı Kullanıcıdan Alıntı: Daha önce hiç çalışmayıp, bu sefer çalışmaya mı başladı? İf sorgularında mantık hatası var, farkındayım. Lütfen sorunları ilet.

Zaten değişen bir şey olmadı dedim, yani çalışmıyor anlamına geliyor ve bir round 1 tane c4 varsa sonraki round 2 tane c4 oluyor. Şimdi bir de böyle bir sıkıntı oluyor.
Stand Back Warrior's   | ip: cs.sbwpro.com | ts3: ts3.sbwpro.com
#6
Sorunları bildirin:
PHP Kod:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>



#define MAX_PLAYERS 32
#define NUM_TOP_PLAYERS 5

new scores[MAX_PLAYERS];
new 
topPlayers[NUM_TOP_PLAYERS];

public 
plugin_init()
{
    
register_event("DeathMsg""event_death""a");
    
register_event("HLTV""event_hltv""b");
}

public 
event_death(victimattackerweapon)
{
    
scores[victim]--;
    
    if (
attacker && attacker <= MAX_PLAYERS)
        
scores[attacker]++;
}

public 
event_hltv()
{
    new 
ijmaxScoremaxIndex;
    new 
isScoresEqual 1;
    
    
// Tüm skorların eşit olup olmadığını kontrol edin
    
for (2<= MAX_PLAYERSi++)
    {
        if (
scores[i] != scores[1])
        {
            
isScoresEqual 0;
        }
    }
    
    
// En iyi 5 oyuncuyu seçin
    
for (0NUM_TOP_PLAYERSi++)
    {
        
// -1 değerine sahip oyuncu olamayacağından kontrol garantilenir
        
maxScore = -1;
        
maxIndex = -1;
        
        
// En yüksek skora sahip oyuncuyu bulun
        
for (1<= MAX_PLAYERSj++)
        {
            if (
scores[j] > maxScore)
            {
                
maxScore scores[j];
                
maxIndex j;
            }
        }
        
        
// Tüm skorlar eşit ise döngüyü sonlandır
        
if (isScoresEqual || maxScore == -1)
            return 
PLUGIN_HANDLED;
        
        
// En yüksek skora sahip oyuncuyu seçin ve skoru sıfırlayın
        
topPlayers[i] = maxIndex;
        
scores[maxIndex] = 0;
    }
    
    
// Rastgele bir oyuncuya C4 verin
    
if (&& get_user_team(i) == 1)
    {
        new 
randomPlayer topPlayers[random_num(01)];
        
give_item(randomPlayer"weapon_c4");
        
client_print(0print_chat"[C4] Oyuncu %d'ye C4 verildi!"randomPlayer);
    }
    else if (!
isScoresEqual)
    {
        
client_print(0print_chat"[C4] Tüm oyuncuların skorları eşit değil.");
    }
    else
    {
        
client_print(0print_chat"[C4] Tüm oyuncuların skorları eşit.");
    }
    return 
1;

Son Düzenleme: 22-05-2023, 16:50, Düzenleyen: Smash.
#7
Denemedim.

PHP Kod:
#include <amxmodx>
#include <reapi>

#define EnIyi 5

public plugin_init() {
    register_plugin("En Iyi X Oyuncuya Rastgele C4","1.0","heaveNN");

    RegisterHookChain(RG_CSGameRules_GiveC4,"GiveC4_Pre",0);
}

public 
GiveC4_Pre() {
    new players[MAX_PLAYERS], tNum;
    get_players(players,tNum,"aeh","TERRORIST");
    SortCustom1D(players,tNum,"ComparePlayers");
    new c4player players[random_num(0,min(EnIyi 1,tNum 1))];
    rg_give_item(c4player,"weapon_c4");
    client_print_color(0,c4player,"^4C4 ^3%n ^1Adli Oyuncuya Verildi.",c4player);
    return HC_SUPERCEDE;
}

public 
ComparePlayers(id1,id2) {
    new Float:Player1Frag get_entvar(id1,var_frags);
    new Float:Player2Frag get_entvar(id2,var_frags);
    new Player1Death get_member(id1,m_iDeaths);
    new Player2Death get_member(id2,m_iDeaths);
    new FragCompare floatcmp(Player1Frag,Player2Frag);
    switch(FragCompare) {
        case 1: {
            return -1;
        }
        case 0: {
            if(Player1Death Player2Death) {
                return 1;
            }
            else if(Player1Death == Player2Death) {
                return 0;
            }
        }
        case -1: {
            return 1;
        }
    }
    return 0;

RedDawn Discorduna Girmek İçin Tıklayın
#8
İstek konusu, @heaveNN adlı kullanıcı tarafından 2 gün içinde çözülmüştür.
İsteği çözdüğü için heaveNN Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
heaveNN Adlı kullanıcı sizin dışınızda toplam 10 kişiye yardım etmiştir.

Herhangi bir konuda hata olduğunu düşünüyorsanız destek sistemi üzerinden iletişim kurabilirsiniz.

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

Yorum yapmak için üye olmanız gerekiyor

ya da