Kullanıcı Tag Listesi

12 sonuçtan 1 ile 10 arası

Hybrid View

  1. #1
    Nemesis* coadmin akcaliberkk - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    Jun 2012
    Yer
    İstanbul
    Mesajlar
    2.027
    Bahsedildi
    105 Mesaj
    Etiketlenmiş
    10 Konu
    Tecrübe Puanı
    10

    Standart Cevap: takım ayarlama plugini

    PHP- Kodu:
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <fakemeta>
    #include <fakemeta_util>

    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "author"

    #define ADMIN_FLAG ADMIN_BAN

    new Group[33] = -1;
    new 
    GroupTag[2][32];
    new 
    bool:fail;
    new 
    bool:fail2;

    public 
    plugin_init() {
        
    register_plugin(PLUGINVERSIONAUTHOR)
        
        
    register_clcmd("say /ayarla","SetRandomTeam")
        
    }
    public 
    SetRandomTeam(id) {
        if(!
    access(id,ADMIN_FLAG)) {
            return 
    PLUGIN_CONTINUE
        
    }
        for(new 
    i;i<32;i++) {
            
    Group[i] = -1;
        }
        
    GroupTag[0][0] = 0;
        
    GroupTag[1][0] = 0;
        
    fail false;
        
    fail2 false;
        
        new 
    players[32],inum,tempid,tag[32];
        
    get_players(players,inum)
        for(new 
    i;i<inum;i++) {
            
    tempid players[i];
            
            new 
    valid=get_user_tag(tempid,tag)
            
            if(!
    valid) {
                
    fail2 true;
            }
            
            if(
    equali(tag,GroupTag[0])) {
                
    Group[tempid] = 0;
            }
            else if(
    equali(tag,GroupTag[1])) {
                
    Group[tempid] = 1;
            }
            else {
                
                if(
    GroupTag[0][0] == 0) {
                    
    copy(GroupTag[0],31,tag)
                    
    Group[tempid] = 0;
                }
                else if(
    GroupTag[1][0] == 0) {
                    
    copy(GroupTag[1],31,tag)
                    
    Group[tempid] = 1;
                }
                else {
                    
    fail true;
                    break
                }
            }
            
        }
        if(
    fail) {
            
    client_print(id,print_chat,"2 Adetten Fazla Tag Tespit Edildi: Ayarlama Basarisiz.")
            return 
    PLUGIN_HANDLED
        
    }
        else if(
    fail2) {
            
    client_print(id,print_chat,"Tagsiz Oyuncu Tespit Edildi: Ayarlama Basarisiz.")
            return 
    PLUGIN_HANDLED
        
    }
        
    StartGrouping(id)
        return 
    PLUGIN_HANDLED
    }
    public 
    StartGrouping(id) {
        new 
    players[32],inum,tempid;
        
    get_players(players,inum)
        for(new 
    i;i<inum;i++) {
            
    tempid players[i];
            if(
    Group[tempid] == 0) {
                
    cs_set_user_team(tempid,CS_TEAM_CT)
                
    fm_DispatchSpawn(tempid)
                
            }
            else if(
    Group[tempid] == 1) {
                
    cs_set_user_team(tempid,CS_TEAM_T)
                
    fm_DispatchSpawn(tempid)
            }
        }
        
    client_print(id,print_chat,"Takimlar Basariyla Olusturuldu: Ayarlama Basarili.")
        return 
    PLUGIN_HANDLED
    }
    stock get_user_tag(idtag[]) {
        
        new 
    name[32],spnum = -1;
        
    get_user_name(id,name,31)
        
        for(new 
    i;i<32;i++) {
            if(
    name[i] == '|' || name[i] == '#') {
                
    spnum i;
                break;
            }
        }
        if(
    spnum == -1) return 0
        
        
    return copy(tag,spnum,name)

    Bu arada harika fikirmiş Ben bunu bi' ara ayrı bir plugin olarak paylaşayım
    Konu akcaliberkk tarafından (07-01-13 Saat 00:46 ) değiştirilmiştir.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    CS:GO ve CS 1.6 için ücretli eklenti yapılır.
    Plugin yazmak isteyenlere yardımcı olabilirim.
    Skype adresimden ulaşabilirsiniz:
    destek_596
    Steam: http://steamcommunity.com/id/ca-nemesis/


Benzer Konular

  1. TeamAlert Plugini ( Takım Bilgilendirme )
    By NiCoMeDiA in forum [PLUGİN] Cs 1.6 Eklentiler
    Cevaplar: 23
    Son Mesaj: 24-07-15, 09:57
  2. Hostage Hp Plugini ( Rehinelerin Hp'sini Ayarlama )
    By NiCoMeDiA in forum [PLUGİN] Cs 1.6 Eklentiler
    Cevaplar: 75
    Son Mesaj: 28-05-13, 22:54
  3. Her Turlu Modda Isik Seviyesini Ayarlama Plugini
    By к4dανяα in forum [PLUGİN] Cs 1.6 Eklentiler
    Cevaplar: 12
    Son Mesaj: 06-04-13, 23:50

Kullanıcıların arama motorlarındaki kullandığı taglar:

ben spnum

Counter Strike

Bu Konudaki Etiketler

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  

SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121