⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
⭐ Buraya kendi metin reklamınızı vererek binlerce kişiye ulaşın! ⭐
Sponsor Görsel 2
SponsorSponsor

Plugin Düzenlme

plugin düzenlme
Merhaba

Zombie Biohazard modunda üst yazıya altina [ ONLİNE ADMINS : X ] Yazılmasını istiyorum

@QuryWesT @By.KinG
.smabio_ustskor.sma(Dosya Boyutu: 760 Bayt | İndirme Sayısı: 5)
Ts3 ve Discord Yedek yapılır. Ücret/Üctsiz
Son Düzenleme: 07-12-2020, 04:03, Düzenleyen: PeterParker
RE: plugin düzenlme
x yazan yerde sayımı yazacak isim mi ?
RE: plugin düzenlme
kac tane admin oldugunu gösteriyor sayi yani
Ts3 ve Discord Yedek yapılır. Ücret/Üctsiz
RE: plugin düzenlme
Buyrun Kendi Clanımda Yapmıştım

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

#if AMXX_VERSION_NUM < 183
    #include <dhudmessage>
#endif 

#define PLUGIN "LastBlow_Bio_UstSkor"
#define VERSION "2.0"
#define AUTHOR "QuryWesT // Gercek Adiyla : Can Erdogan"

new maxplayers
new admincvar

new SyncAdmin

public plugin_init()
{
    
register_plugin(PLUGIN, VERSION, AUTHOR)
    
set_task(0.7, "huds", 0, _, _, "b")
    
          set_task(0.7, "adminsonline", 0, "", 0, "b" )
    
    SyncAdmin 
= CreateHudSyncObj()
    
    maxplayers 
= get_maxplayers() 
    
admincvar = register_cvar("amx_showadmins","1")
}
public 
huds(id)
{
    
set_dhudmessage(random_num(57, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.00, 0, 0.5, 2.0, 0.08, 3.0)
    
show_dhudmessage(id,"[ ZM: %i ] (%i) [ HM: %i ]", get_member_game(m_iNumTerroristWins), (get_member_game(m_iNumTerroristWins)+get_member_game(m_iNumCTWins)), get_member_game(m_iNumCTWins))
}

public 
adminsonline() {
    static id, count, msg[512], pos, name[32]
    pos = 0
    count 
= 0
    pos 
+= formatex(msg[pos], 511-pos, "admins online:")
    for(id = 1 ; id <= maxplayers ; id++)
        if(is_user_connected(id) && (get_user_flags(id) & ADMIN_BAN))
    {
        count++
        get_user_name(id, name, 31)
        pos += formatex(msg[pos], 511-pos, "^n%s", name)
    }
    if(get_pcvar_num(admincvar) ==1)
    {
        {
            //set_hudmessage(0, 130, 0, 0.02, 0.2, 0, 2.0, 2.0, _, _, -1)
           // ShowSyncHudMsg(0,SyncAdmin, "%d admins online.", count)
            set_hudmessage(255, 255, 255, -1.0, 0.04, 0, 6.0, 12.0)
            ShowSyncHudMsg(0,SyncAdmin, "[ Online Admins %d ]", count)
    
    
          
// set_hudmessage(255, 255, 255, -1.0, 0.04, 0, 6.0, 12.0)
           //show_hudmessage(id, "[ Online Admins %d ]", count)


        }
    }
} 
~ CS2 Ücretli Eklenti - CS 1.6 Ücretli Eklenti ~
RE: plugin düzenlme
BEN SMA ATMİŞTMİ İNSAN (1) (VS) HUMANS (1) ALTİNA YAZILMASINI İSTİYORUM
Ts3 ve Discord Yedek yapılır. Ücret/Üctsiz
RE: plugin düzenlme
Direk Kurun Kendi Sunucumda Kullandim Sıkıntsızı Kurun

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

#if AMXX_VERSION_NUM < 183
    #include <dhudmessage>
#endif 

#define PLUGIN "LastBlow_Bio_UstSkor"
#define VERSION "2.0"
#define AUTHOR "QuryWesT // Gercek Adiyla : Can Erdogan"

new maxplayers
new admincvar

new SyncAdmin

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    set_task(0.7, "huds", 0, _, _, "b")
    
          set_task
(0.7, "adminsonline", 0, "", 0, "b" )
    
    SyncAdmin 
= CreateHudSyncObj()
    
    maxplayers 
= get_maxplayers() 
    admincvar = register_cvar("amx_showadmins","1")
}
public 
huds(id)
{
    set_dhudmessage(random_num(57, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.00, 0, 0.5, 2.0, 0.08, 3.0)
    show_dhudmessage(id,"[ ZOMBIE: %i ] (%i) [ HUMANS: %i ]", get_member_game(m_iNumTerroristWins), (get_member_game(m_iNumTerroristWins)+get_member_game(m_iNumCTWins)), get_member_game(m_iNumCTWins))
}

public 
adminsonline() {
    static id, count, msg[512], pos, name[32]
    pos = 0
    count 
= 0
    pos 
+= formatex(msg[pos], 511-pos, "admins online:")
    for(id = 1 ; id <= maxplayers ; id++)
        if(is_user_connected(id) && (get_user_flags(id) & ADMIN_BAN))
    {
        count++
        get_user_name(id, name, 31)
        pos += formatex(msg[pos], 511-pos, "^n%s", name)
    }
    if(get_pcvar_num(admincvar) ==1)
    {
        {
            //set_hudmessage(0, 130, 0, 0.02, 0.2, 0, 2.0, 2.0, _, _, -1)
           // ShowSyncHudMsg(0,SyncAdmin, "%d admins online.", count)
            set_hudmessage(255, 255, 255, -1.0, 0.04, 0, 6.0, 12.0)
            ShowSyncHudMsg(0,SyncAdmin, "[ Online Admins %d ]", count)
        
          
// set_hudmessage(255, 255, 255, -1.0, 0.04, 0, 6.0, 12.0)
           //show_hudmessage(id, "[ Online Admins %d ]", count)


        }
    }
} 

Altında Zaten set_dhud taraflşari kodlari duzgunce yapıldı
~ CS2 Ücretli Eklenti - CS 1.6 Ücretli Eklenti ~
Son Düzenleme: 07-12-2020, 04:18, Düzenleyen: QuryWesT
RE: plugin düzenlme
PHP Kod:
#include <amxmodx>
#include <reapi>

new SyncAdmin

public plugin_init()
{
    
register_plugin("Ust Skor", "1.0", "QuryWesT")
    
set_task(0.2, "spawn", 0, _, _, "b")
    
    
SyncAdmin = CreateHudSyncObj()
}

public 
spawn(id)
{
static 
count 
count 
= 0
if(is_user_connected(id) && (get_user_flags(id) & ADMIN_KICK)) count++

set_hudmessage(255, 0, 0, -1.0, 0.00, 0, 0.5, 2.0, 0.08, 3.0)
ShowSyncHudMsg(0,SyncAdmin,"[ ZOMBIE: %i ] (%i) [ HUMANS: %i ] ^n [ ONLINE ADMINS: %d]", get_member_game(m_iNumTerroristWins), (get_member_game(m_iNumTerroristWins)+get_member_game(m_iNumCTWins)), get_member_game(m_iNumCTWins),count)
} 
RE: plugin düzenlme
AMX Mod X Compiler 1.10.0.5392
Copyright © 1997-2006 ITB CompuPhase
Copyright © 2004-2013 AMX Mod X Team

bio_ustskor.sma(24) : warning 217: loose indentation
bio_ustskor.sma(26) : warning 217: loose indentation
Header size: 692 bytes
Code size: 2132 bytes
Data size: 3668 bytes
Stack/heap size: 16384 bytes
Total requirements: 22876 bytes

2 Warnings.
Done.
Ts3 ve Discord Yedek yapılır. Ücret/Üctsiz
RE: plugin düzenlme
PHP Kod:
AMX Mod X Compiler 1.10.0.5392
Copyright 
(c) 1997-2006 ITB CompuPhase
Copyright 
(c) 2004-2013 AMX Mod X Team

Header size
:            472 bytes
Code size
:             1216 bytes
Data size
:             1140 bytes
Stack
/heap size:      16384 bytes
Total requirements
:   19212 bytes
Done
.
[
Finished in 0.4s] 
.smabio_ustskor.sma(Dosya Boyutu: 644 Bayt | İndirme Sayısı: 1)
RE: plugin düzenlme
Sıkıntı Mevcut Aynı Eklentiye Koyulmasına Gerek Yoktu set_ Dogru Bi Şekilde Yapıldı Kendi Sunucumda Kullandim Zaten Eklentiyi

Dostum Benimkini Kurup oyle bi konuya yorum yaparmısnız rica ediyorum eger hatam varsa suriylikeninkini kurarsiniz ama kendi sunucmudakini attım direk ve 2 warning veriyor warning olsada kur bi bak
~ CS2 Ücretli Eklenti - CS 1.6 Ücretli Eklenti ~
Son Düzenleme: 07-12-2020, 04:22, Düzenleyen: QuryWesT

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

Yorum yapmak için üye olmanız gerekiyor

ya da
Konuyu Okuyanlar: 1 Ziyaretçi
Task