Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
/admin Plugin'ini Düzenleme ( Renklendirme )
#21
Elinize Sağlık
Reply
#22
güncel
Reply
#23
Bence bu işini görür

editleme tamamen bana aittir.

[Image: attachment.php?attachmentid=10479&stc=1]

[Image: attachment.php?attachmentid=10480&stc=1]


[/HR]
Code:
#include <amxmodx>

/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK

static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/

new maxplayers
new gmsgSayText

public plugin_init() {
    register_plugin("Admin Check", "1.5", "OneEyed")
    maxplayers = get_maxplayers()
    gmsgSayText = get_user_msgid("SayText")
    register_clcmd("say", "handle_say")
    register_cvar("sv_contact", CONTACT, FCVAR_SERVER)
}

public handle_say(id) {
    new said[192]
    read_args(said,192)
    if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
        set_task(0.1,"print_adminlist",id)
    return PLUGIN_CONTINUE
}

public print_adminlist(user)
{
    new adminnames[33][32]
    new message[256]
    new contactinfo[256], contact[112]
    new id, count, x, len
    
    for(id = 1 ; id <= maxplayers ; id++)
        if(is_user_connected(id))
            if(get_user_flags(id) & ADMIN_CHECK)
                get_user_name(id, adminnames[count++], 31)

    len = format(message, 255, "%s Oyundaki Adminler : ",COLOR)
    if(count > 0) {
        for(x = 0 ; x < count ; x++) {
            len += format(message, 255-len, "^3%s%s ", adminnames, x < (count-1) ? ", ":"")
            if(len > 96 ) {
                print_message(user, message)
                len = format(message, 255, "%s ",COLOR)
            }
        }
        print_message(user, message)
    }
    else {
        len += format(message, 255-len, "^3Oyunda Admin Bulunmamaktadir.")
        print_message(user, message)
    }
    
    get_cvar_string("sv_contact", contact, 63)
    if(contact[0])  {
        format(contactinfo, 111, "%s Server Yetkilisi ~ : ^3%s", COLOR, contact)
        print_message(user, contactinfo)
    }
}

print_message(id, msg[]) {
    message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
    write_byte(id)
    write_string(msg)
    message_end()
}

stock chat_color(const id, const input[], any:...) {
    new count = 1, players[32]
    static msg[191]
    vformat(msg, 190, input, 3)
    
    replace_all(msg, 190, "!g", "^4")
    replace_all(msg, 190, "!y", "^1")
    replace_all(msg, 190, "!t", "^3")
    replace_all(msg, 190, "!team2", "^0")
    
    if (id) players[0] = id; else get_players(players, count, "ch")
    {
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players))
            {
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
                write_byte(players);
                write_string(msg);
                message_end();
            }
        }
    }
}


Attached Files
.png   9Vrsb8.png (Size: 10.54 KB / Downloads: 155)
.png   WVpyaP.png (Size: 12.53 KB / Downloads: 148)
Reply
#24
Arkadaşlar bu atacağım biraz daha iyi bunu tercih edebilirsiniz.

BÜTÜN EDİTLEME TAMAMEN BANA AİTTİR.

[/HR]Say Komutları ;

- /admin

[/HR]Cvar Ayarları ;

amx_cvar sv_contact [email protected]



[/HR]Resimler ;

T deyken ;

[Image: zm9vgj.png]

CT deyken ;

[Image: RJ2LJR.png]

[/HR]
Tabiki smayı kendi reklamınıza göre editleyebilirsiniz.

Arkadaş öyle gösterdiği için [MGA] yaptım kendiniz değiştirebilirisiniz.

Eğer AMXX e çeviremesseniz konuya mesaj atabilirsiniz.


[/HR]
SMA ;

Code:
#include <amxmodx>

/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK

static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/

new maxplayers
new gmsgSayText

public plugin_init() {
    register_plugin("Admin Check", "1.8", "One Eyed ~ [Edit_pandora158]")
    maxplayers = get_maxplayers()
    gmsgSayText = get_user_msgid("SayText")
    register_clcmd("say", "handle_say")
    register_cvar("sv_contact", CONTACT, FCVAR_SERVER)
}

public handle_say(id) {
    new said[192]
    read_args(said,192)
    if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
        set_task(0.1,"print_adminlist",id)
    return PLUGIN_CONTINUE
}

public print_adminlist(user)
{
    new adminnames[33][32]
    new message[256]
    new contactinfo[256], contact[112]
    new id, count, x, len
    
    for(id = 1 ; id <= maxplayers ; id++)
        if(is_user_connected(id))
            if(get_user_flags(id) & ADMIN_CHECK)
                get_user_name(id, adminnames[count++], 31)

    len = format(message, 255, "^1%s Oyundaki Adminler : ",COLOR)
    if(count > 0) {
        for(x = 0 ; x < count ; x++) {
            len += format(message, 255-len, "^3%s%s ", adminnames, x < (count-1) ? ", ":"")
            if(len > 96 ) {
                print_message(user, message)
                len = format(message, 255, "%s ",COLOR)
            }
        }
        print_message(user, message)
    }
    else {
        len += format(message, 255-len, "^3Oyunda Admin Bulunmamaktadir.")
        print_message(user, message)
    }
    
    get_cvar_string("sv_contact", contact, 63)
    if(contact[0])  {
        format(contactinfo, 111, "%sServer Yetkilisi ~ : ^3%s", COLOR, contact)
        print_message(user, contactinfo)
    }
}

print_message(id, msg[]) {
    message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
    write_byte(id)
    write_string(msg)
    message_end()
}

stock chat_color(const id, const input[], any:...) {
    new count = 1, players[32]
    static msg[191]
    vformat(msg, 190, input, 3)
    
    replace_all(msg, 190, "!g", "^4")
    replace_all(msg, 190, "!y", "^1")
    replace_all(msg, 190, "!t", "^3")
    replace_all(msg, 190, "!team2", "^0")
    
    if (id) players[0] = id; else get_players(players, count, "ch")
    {
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players))
            {
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
                write_byte(players);
                write_string(msg);
                message_end();
            }
        }
    }
}
Reply
#25
yorumlarınızı bekliyorum.
Reply
#26
aga bişey sorcam ben yapıyorum güzelde amxxde çevirip servere yüklüyorum oyunda /admin yapıyorum sadece oyundaki adminler gözüküyor server yetkilisi altında yazmıyor sebeb.
[Image: sigpic34973_1.gif]
Reply
#27
amx_cvar sv_contact [email protected]

eğer istersen özel ayarlara yaz sürekli kendi açık kalır.


- - - - - - - - - -

amx_cvar sv_contact [email protected]

bunu konsola yaz eğer sürekli çıkmasını istiyorsan özel ayarlara yaz bu kodu.
Reply
#28
tmm denicem saol amxx.cfg yazarsak sabit kalması gerek heralde.
[Image: sigpic34973_1.gif]
Reply
#29
özel ayar dediğim amxx.cfg oluyor.
Reply
#30
@adiosamigo

isteğini gerçekleştirildi.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Vıp Plugın nihat331333 17 9,456 27-05-20, 08:57
Last Post: duzceli
  Admin Yetkileri | Yetki Harfleri | Anlamları | Kullanım Şekilleri JDM 44 48,016 25-04-19, 21:10
Last Post: rahmi59
  Takim Skor Plugin chirkinqral 5 10,124 02-02-18, 21:06
Last Post: fenakoyar
  Jail Plugin (İSTEK) mehmet154 6 6,819 09-12-17, 04:31
Last Post: exelds78
  LR plugini duzenleme xLdeJavu 2 6,164 09-12-17, 04:15
Last Post: exelds78
  Radar altı reklam duzenleme xLdeJavu 4 6,107 09-12-17, 04:13
Last Post: exelds78
  Basit plugin isteği MaMiBey 4 3,214 09-12-17, 04:11
Last Post: exelds78
  Nicke Özel Plugin 2 afaik61 3 5,716 09-12-17, 04:10
Last Post: exelds78
  T shop plugın [içeri] oguzhan22 3 4,140 07-06-17, 14:50
Last Post: farakk
  Base builder plugin sorunu acil Copyz 2 8,954 09-01-17, 21:09
Last Post: crunch98

Foruma Atla:


Users browsing this thread: 1 Guest(s)