Kullanıcı Tag Listesi

5 sonuçtan 1 ile 5 arası
  1. #1
    cavus er
    Üyelik tarihi
    Nov 2012
    Mesajlar
    151
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    8

    Standart Sma m hata veriyor ( Loose indentation 217)

    PHP- Kodu:
    #include <amxmodx>
    #include <amxmisc>
    #include <fun>
    #include <fakemeta>
    #include <cstrike>
    #include <hamsandwich> 
    #include <engine>




    #define PLUGIN "Oyun Menu Plugini"
    #define VERSION "2.2"
    #define AUTHOR "DAYI"

    public plugin_init() { 
        
    register_plugin("\y[JB]OyunMenusu","2.2","Godfather"
        
    register_clcmd("say /jailmenu","top")
        
    RegisterHam(Ham_Spawn,"player","modelsil",1)
        
    //register_logevent("ayar_sifirla", 2,"1=Round_Start") 

    public 
    modelsil(id) {
        
    cs_reset_user_model(id)


    public 
    plugin_precache() { 
        
    precache_model("models/player/kopekbaligi/kopekbaligi.mdl")
        
    precache_model("models/player/mga_draqula/mga_draqula.mdl")
        
    precache_model("models/player/mgacounter/mgacounter.mdl")
        
    precache_model("models/player/ghost/ghost.mdl")
        
    precache_model("models/player/kus/kus.mdl")
        
    precache_sound("zombie_plague/zombie_madness1.wav")
        
        
    }

    public 
    top(id

        if( !
    is_user_alive(id) ) return PLUGIN_HANDLED
        
    if( cs_get_user_team(id) == CS_TEAM_T) return PLUGIN_HANDLED 
        
        
    new menu menu_create("\rOyunmenu \yGODFATHER ]""menu_handler"
        
    menu_additem(menu"\yAyarlari \r[SIFIRLA]""8"0);
        
    menu_additem(menu"\y[GOD \r+ \yHEAL]""7",0); 
        
    menu_additem(menu"\yRevive \r[MENU]""25",0);
        
    menu_additem(menu"\yKopekbaligi \r[BASLAT]""24",0); 
        
    menu_additem(menu"\ySaklanbac \r[BASLAT]""1"0); 
        
    menu_additem(menu"\ySparta Oyunu \r[BASLAT]""2"0); 
        
    menu_additem(menu"\yYakartop Oyunu \r[BASLAT]""3"0); 
        
    menu_additem(menu"\yCete Oyunu \r[BASLAT]""4"0); 
        
    menu_additem(menu"\yYakalanbac Oyunu \r[BASLAT]""5"0); 
        
    menu_additem(menu"\ySimit Oyunu \r[BASLAT]""6"0); 
        
    menu_additem(menu"\yC4 Oyunu""9"0); 
        
    menu_additem(menu"\yT ye C4 \r[VER]""10" ,0);
        
    menu_additem(menu"\yHayalet \r[BASLAT]""11",0);
        
    menu_additem(menu"\yKus Avi \r[BASLAT]""12",0);
        
    menu_additem(menu"\yKorebe \r[BASLAT]""14",0);
        
    menu_additem(menu"\yZombi \r[BASLAT] \r[ \y-ModellerSonSayfada \r]""13",0);
        
    menu_additem(menu"\yCatisma \r[BASLAT]""15",0);
        
    menu_additem(menu"\yUcan Pipi \r[BASLAT]""16",0);
        
    menu_additem(menu"\ySustum Deagle \r[BASLAT]""17",0);
        
    menu_additem(menu"\yTyi Gom""18",0);
        
    menu_additem(menu"\yTyi Gomulmekten \r[CIKAR]""19",0);
        
    menu_additem(menu"\yKule Oyunu \r[BASLAT]""20",0);
        
    menu_additem(menu"\yKule Oyununu \r[KAPAT]""21",0);
        
    menu_additem(menu"\yAref""22",0);
        
    menu_additem(menu"\yArefi \r[KAPAT]""23",0);
        
        
    menu_setprop(menuMPROP_NEXTNAME"Diger Oyunlar"); 
        
    menu_setprop(menuMPROP_BACKNAME"Onceki Oyunlar");
        
    menu_setprop(menuMPROP_EXITNAME"Menuyu Kapat");
        
    menu_setprop(menuMPROP_EXITMEXIT_ALL); 
        
    menu_display(idmenu0); 
        
        return 
    PLUGIN_CONTINUE 


    public 
    menu_handler(idmenuitem

        if( 
    item == MENU_EXIT 
        { 
            
    menu_destroy(menu); 
            return 
    PLUGIN_HANDLED
        } 
        
        new 
    data[6], iName[64]; 
        new 
    accesscallback
        
    menu_item_getinfo(menuitemaccessdata,5iName63callback); 
        new 
    key str_to_num(data); 
        new 
    adminismi[32
        
    get_user_name(id,adminismi,31
        
        switch(
    key
        { 
            case 
    1: { 
                
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_weapon @CT g3sg1"
                
    server_cmd("amx_weapon @CT 14"
                
    server_cmd("amx_disarm @T"
                
    server_cmd("amx_unammo @CT 1")
                
    server_cmd("amx_bury @T 1")
                
    chat_color(id,"!t[Godfather] !gSaklanbac Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")  
                
            } 
            
            case 
    2: { 
                
    server_cmd("amx_weapon @T shield")
                
    server_cmd("amx_unammo @all 1")
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_disarm @CT")
                
    server_cmd("amx_weapon @CT 100")
                
    chat_color(id,"!t[Godfather] !gSparta Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]"
                
            } 
            
            case 
    3: { 
                
    server_cmd("amx_glow @T blue"
                
    server_cmd("amx_godmode @CT 1"
                
    server_cmd("amx_heal @CT 9999999"
                
    server_cmd("amx_disarm @all"
                
    server_cmd("amx_unammo @CT 1"
                
    server_cmd("amx_fire @CT 1")
                
    cs_set_user_model(id,"dolboeb")
                
    chat_color(id,"!t[Godfather] !gYakartop Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            
            case 
    4: { 
                
    server_cmd("amx_weapon @T 43"
                
    server_cmd("amx_weapon @T 42"
                
    server_cmd("amx_weapon @T 14"
                
    server_cmd("amx_weapon @T 48"
                
    server_cmd("amx_armor @all 100"
                
    server_cmd("amx_heal @T 900"
                
    server_cmd("amx_weapon @CT 100"
                
    server_cmd("amx_unammo @all 1")
                
    server_cmd("amx_godmode @CT 1")
                
    chat_color(id,"!t[Godfather] !gCete Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            case 
    5: { 
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_speed @CT 1"
                
    server_cmd("amx_disarm @all"
                
    cs_set_user_model(id,"dolboeb"
                
    chat_color(id,"!t[Godfather] !gYakalanbac Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
                
            } 
            case 
    6: { 
                
    server_cmd("amx_heal @CT 500"
                
    server_cmd("amx_disarm @all")
                
    chat_color(id,"!t[Godfather] !gSimit Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
                
            } 
            case 
    7: { 
                
    server_cmd("amx_godmode @CT 1"
                
    server_cmd("amx_heal @ct 1200"
                
    chat_color(id,"!t[Godfather] !gCT Koruma Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
                
                
            } 
            case 
    8: {
                
    server_cmd("amx_godmode @all 0"
                
    server_cmd("amx_unammo @all 0"
                
    server_cmd("amx_speed @all 0"
                
    server_cmd("amx_noclip @all 0"
                
    server_cmd("amx_cvar sv_gravity 800"
                
    server_cmd("amx_glow @all off"
                
    server_cmd("amx_cvar mp_friendlyfire 0")
                
    server_cmd("amx_cvar sv_voiceenable 1")
                
    server_cmd("amx_cvar sv_gravity 800")
                
    server_cmd("amx_disarm @T")
            
    server_cmd("amx_unfire @all")
            
    server_cmd("amx_cvar sv_parachute 1")
                
    server_cmd("amx_revive @CT")
                
    server_cmd("amx_revive @CT")
            
    set_lights("#OFF")
                
    server_cmd("amx_revive @CT"
                
    server_cmd("amx_revive @CT")
                
    cs_set_user_model(id,"mgacounter")
                new 
    players[32],inum;
                
    get_players(players,inum,"e","TERRORIST")
                for(new 
    i=0;i<inum;i++) {
                    
    cs_reset_user_model(players[i])
                }
                
    chat_color(id,"!t[Godfather] !gAYARLAR SIFIRLANDI!!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]"
                
                
            } 
            case 
    9: {
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_bury @T"
                
    server_cmd("amx_weapon @T 91")
                
    chat_color(id,"!t[Godfather] !gC4 Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gC4 Dusuren olursa menuden C4 verin.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            } 
            
            case 
    10: { 
                
    server_cmd("amx_weapon @T 91")
                
    chat_color(id,"!t[Godfather] !gT ye C4 Verildi!")
                
    chat_color(id,"!t[Godfather] !gT ye C4 Verildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            } 
            
            case 
    11: { 
                
    server_cmd("amx_heal @CT 900"
                
    server_cmd("amx_disarm @all"
                
    server_cmd("amx_weapon @T 43"
                
    server_cmd("amx_weapon @T 14"
                
    server_cmd("amx_noclip @CT 1"
                
    server_cmd("amx_armor @all 100"
                
    cs_set_user_model(id,"ghost"
                
    chat_color(id,"!t[Godfather] !gHayalet Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            } 
            
            case 
    12: { 
                
    server_cmd("amx_glow @T white"
                
    server_cmd("amx_disarm @all"
                
    server_cmd("amx_weapon @CT 100"
                
    server_cmd("amx_heal @CT 30000"
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_cvar sv_gravity 100")
                
    server_cmd("amx_unammo @all 1")
                new 
    players[32],inum;
                
    get_players(players,inum,"e","TERRORIST")
                for(new 
    i=0;i<inum;i++) {
                    
    cs_set_user_model(players[i],"kus")
                }
                
    chat_color(id,"!t[Godfather] !gKus Avi Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            } 
            
            case 
    13: {
                
    server_cmd("amx_disarm @all")
                
    server_cmd("amx_cvar sv_gravity 200")
                
    server_cmd("amx_cvar mp_flashlight 1")
                
    server_cmd("amx_cvar sv_voiceenable 0")
                
    server_cmd("amx_weapon @T 100")
                
    server_cmd("amx_weapon @T 49")
                
    server_cmd("amx_weapon @T 43")
                
    server_cmd("amx_weapon @T 42")
                
    server_cmd("amx_weapon @T 46")
                
    server_cmd("amx_heal @CT 15000")
            
    emit_sound(id,CHAN_VOICE,"zombie_plague/zombie_madness1.wav"1.0ATTN_NORM0PITCH_NORM)
            
    set_lights("b")
                
    cs_set_user_model(id,"mga_draqula")
                
    chat_color(id,"!t[Godfather] !gZombi Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    14: {
                
    server_cmd("amx_glow @CT 0 0 0 0")
                
    server_cmd("amx_disarm @all")
                
    server_cmd("amx_weapon @T 43")
                
    server_cmd("amx_weapon @T 43")
                
    server_cmd("amx_weapon @T 42")
                
    server_cmd("amx_weapon @T 100")
                
    chat_color(id,"!t[Godfather] !gKorebe Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
                
            }
            
            case 
    15: {
                
    server_cmd("amx_disarm @all")
                
    server_cmd("amx_weapon @all 43")
                
    server_cmd("amx_weapon @all 42")
                
    server_cmd("amx_weapon @CT 100")
                
    server_cmd("amx_weapon @T 46")
                
    server_cmd("amx_weapon @T 14")
                
    server_cmd("amx_unammo @all 1")
                
    server_cmd("amx_heal @CT 400")
                
    chat_color(id,"!t[Godfather] !gCatisma Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    16: {
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_cvar sv_gravity 100")
                
    server_cmd("amx_heal @CT 999999")
                
    server_cmd("amx_godmode @CT 1")
            new 
    players[32],inum;
                
    get_players(players,inum,"e","TERRORIST")
                for(new 
    i=0;i<inum;i++) {
                    
    cs_set_user_model(players[i],"dolboeb")
                }
                
    chat_color(id,"!t[Godfather] !gUcan Pipi Oyunu Aktif Edildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    17: {
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_bury @T")
                
    server_cmd("mp_friendlyfire 1")
                
    server_cmd("amx_cvar mp_friendlyfire 1")
                
    server_cmd("amx_heal @CT 9999999")
                
    server_cmd("amx_godmode @CT 1")
                
    chat_color(id,"!t[Godfather] !gSustum Deagle Oyunu Aktif Edildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    18: {
                
    server_cmd("amx_bury @T")
                
    chat_color(id,"!t[Godfather] !gT GOMULDU!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    19: {
                
    server_cmd("amx_unbury @T")
                
    chat_color(id,"!t[Godfather] !gT yerden cikartildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    20: {
                
    server_cmd("sv_parachute 0")
                
    server_cmd("amx_cvar sv_parachute 0")
                
    chat_color(id,"!t[Godfather] !gKule oyunu acildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    21: {
                
    server_cmd("sv_parachute 1")
                
    server_cmd("amx_cvar sv_parachute 1")
                
    chat_color(id,"!t[Godfather] !gKule oyunu bitti!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    22: {
                
    server_cmd("amx_glow @T 0 0 0 0")
                
    server_cmd("amx_cvar mp_friendlyfire 1")
                
    server_cmd("mp_friendlyfire 1")
                
    chat_color(id,"!t[Godfather] !gAref basladi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    23: {
                
    server_cmd("amx_glow @T off")
                
    server_cmd("amx_cvar mp_friendlyfire 0")
                
    server_cmd("mp_friendlyfire 0")
                
    chat_color(id,"!t[Godfather] !gAref kapatildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            
            case 
    24: {
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_heal @CT 999999")
                
    cs_set_user_model(id,"kopekbaligi")
                
    chat_color(id,"!t[Godfather] !gRRRrrr!!Kopekbaligi Aktif!!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
            
            }
            case 
    25: {
                
    cmdReviveMenu(id);
                
            }
            
        }
        return 
    PLUGIN_CONTINUE
    }
        
    public 
    cmdReviveMenu(id) {
        
        new 
    menu menu_create("\yRevive Menu","menu_handlerx")
        
        new 
    players[32],inum,Uid;
        new 
    szName[32], szID[10];
        
    get_players(players,inum,"b")
        for(new 
    i;i<inum;i++) {
            
    Uid players[i];
            
    get_user_name(Uid,szName,31)
            
    num_to_str(Uid,szID,9)
            
            
    menu_additem(menu,szName,szID,0)
        }
        
    menu_display(id,menu,0)
        return 
    PLUGIN_CONTINUE
    }
    public 
    menu_handlerx(id,menu,item) {
        if(
    item==MENU_EXIT) {
            
    menu_destroy(menu)
            return 
    PLUGIN_HANDLED
        
    }
        new 
    data[6],szName[32];
        new 
    access,callback;
        
    menu_item_getinfo(menu,item,access,data,charsmax(data),szName,charsmax(szName),callback)
        
        new 
    Uid str_to_num(data);
        
        if(!
    is_user_alive(Uid) && is_user_connected(Uid)) {
            if(
    get_user_flags(Uid) & ADMIN_IMMUNITY) {
                
    cmdReviveMenu(id)
                
    client_print(id,print_chat,"Bu Kisi Dokunulmaz !")
                return 
    PLUGIN_HANDLED
            
    }
            
    ExecuteHamB(Ham_CS_RoundRespawn,Uid)
            
    set_task(0.1,"Silah_Sil",Uid)
            
            new 
    admin[32];
            
    get_user_name(id,admin,31)
            
    client_print(id,print_chat,"[AMXX] Admin %s: %s Adli Oyuncuyu Canlandirdi !",admin,szName)
        }
        
    cmdReviveMenu(id)
        return 
    PLUGIN_HANDLED
        
    }
    public 
    Silah_Sil(id) {
        if(
    get_user_team(id) == 1) {
            
    strip_user_weapons(id)
            
    give_item(id,"weapon_knife")
        }
    }

    stock chat_color(const id, const input[], any:...)
    {
        new 
    count 1players[32]
        static 
    msg[191]
        
    vformat(msg190input3)
            
        
    replace_all(msg190"!g""^4"//yesil
        
    replace_all(msg190"!y""^1"//sari
        
    replace_all(msg190"!t""^3"//takim-rengi
        
    replace_all(msg190"!team2""^0"//bilmiom
            
        
    if (idplayers[0] = id; else get_players(playerscount"ch")
        {
            for (new 
    0counti++)
            {
                if (
    is_user_connected(players[i]))
                {
                    
    message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                    
    write_byte(players[i]);
                    
    write_string(msg);
                    
    message_end();
                }
            }
        }

    İlk başta 2 tane hata vardı compile ederken , buraya php ile yazıp tekrar kopyaladım şimdi aynı hata 8 adet oldu :S Nedeni nedir ?

  2. #2
    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: Sma m hata veriyor ( Loose indentation 217)

    Sma indentation hatalarıyla dolu. Böyle durumlarda CTRL + I yaparak hatayı giderebilirsiniz. Fakat otomatik olarak düzeltilemeyecek kadar çok hata yapılmışsa el ile düzeltmek gerekir. Onun için plugin yazarken olabildiğince düzgün bir şekilde süslü parantez kullanılmalı.

    Ben düzelttim hatayı:
    PHP- Kodu:
    #include <amxmodx>
    #include <amxmisc>
    #include <fun>
    #include <fakemeta>
    #include <cstrike>
    #include <hamsandwich> 
    #include <engine>




    #define PLUGIN "Oyun Menu Plugini"
    #define VERSION "2.2"
    #define AUTHOR "DAYI"

    public plugin_init() { 
        
    register_plugin("\y[JB]OyunMenusu","2.2","Godfather"
        
    register_clcmd("say /jailmenu","top")
        
    RegisterHam(Ham_Spawn,"player","modelsil",1)
        
    //register_logevent("ayar_sifirla", 2,"1=Round_Start") 

    public 
    modelsil(id) {
        
    cs_reset_user_model(id)


    public 
    plugin_precache() { 
        
    precache_model("models/player/kopekbaligi/kopekbaligi.mdl")
        
    precache_model("models/player/mga_draqula/mga_draqula.mdl")
        
    precache_model("models/player/mgacounter/mgacounter.mdl")
        
    precache_model("models/player/ghost/ghost.mdl")
        
    precache_model("models/player/kus/kus.mdl")
        
    precache_sound("zombie_plague/zombie_madness1.wav")
        
        
    }

    public 
    top(id

        if( !
    is_user_alive(id) ) return PLUGIN_HANDLED
        
    if( cs_get_user_team(id) == CS_TEAM_T) return PLUGIN_HANDLED 
        
        
    new menu menu_create("\rOyunmenu \yGODFATHER ]""menu_handler"
        
    menu_additem(menu"\yAyarlari \r[SIFIRLA]""8"0);
        
    menu_additem(menu"\y[GOD \r+ \yHEAL]""7",0); 
        
    menu_additem(menu"\yRevive \r[MENU]""25",0);
        
    menu_additem(menu"\yKopekbaligi \r[BASLAT]""24",0); 
        
    menu_additem(menu"\ySaklanbac \r[BASLAT]""1"0); 
        
    menu_additem(menu"\ySparta Oyunu \r[BASLAT]""2"0); 
        
    menu_additem(menu"\yYakartop Oyunu \r[BASLAT]""3"0); 
        
    menu_additem(menu"\yCete Oyunu \r[BASLAT]""4"0); 
        
    menu_additem(menu"\yYakalanbac Oyunu \r[BASLAT]""5"0); 
        
    menu_additem(menu"\ySimit Oyunu \r[BASLAT]""6"0); 
        
    menu_additem(menu"\yC4 Oyunu""9"0); 
        
    menu_additem(menu"\yT ye C4 \r[VER]""10" ,0);
        
    menu_additem(menu"\yHayalet \r[BASLAT]""11",0);
        
    menu_additem(menu"\yKus Avi \r[BASLAT]""12",0);
        
    menu_additem(menu"\yKorebe \r[BASLAT]""14",0);
        
    menu_additem(menu"\yZombi \r[BASLAT] \r[ \y-ModellerSonSayfada \r]""13",0);
        
    menu_additem(menu"\yCatisma \r[BASLAT]""15",0);
        
    menu_additem(menu"\yUcan Pipi \r[BASLAT]""16",0);
        
    menu_additem(menu"\ySustum Deagle \r[BASLAT]""17",0);
        
    menu_additem(menu"\yTyi Gom""18",0);
        
    menu_additem(menu"\yTyi Gomulmekten \r[CIKAR]""19",0);
        
    menu_additem(menu"\yKule Oyunu \r[BASLAT]""20",0);
        
    menu_additem(menu"\yKule Oyununu \r[KAPAT]""21",0);
        
    menu_additem(menu"\yAref""22",0);
        
    menu_additem(menu"\yArefi \r[KAPAT]""23",0);
        
        
    menu_setprop(menuMPROP_NEXTNAME"Diger Oyunlar"); 
        
    menu_setprop(menuMPROP_BACKNAME"Onceki Oyunlar");
        
    menu_setprop(menuMPROP_EXITNAME"Menuyu Kapat");
        
    menu_setprop(menuMPROP_EXITMEXIT_ALL); 
        
    menu_display(idmenu0); 
        
        return 
    PLUGIN_CONTINUE 


    public 
    menu_handler(idmenuitem

        if( 
    item == MENU_EXIT 
        { 
            
    menu_destroy(menu); 
            return 
    PLUGIN_HANDLED
        } 
        
        new 
    data[6], iName[64]; 
        new 
    accesscallback
        
    menu_item_getinfo(menuitemaccessdata,5iName63callback); 
        new 
    key str_to_num(data); 
        new 
    adminismi[32
        
    get_user_name(id,adminismi,31
        
        switch(
    key
        { 
            case 
    1: { 
                
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_weapon @CT g3sg1"
                
    server_cmd("amx_weapon @CT 14"
                
    server_cmd("amx_disarm @T"
                
    server_cmd("amx_unammo @CT 1")
                
    server_cmd("amx_bury @T 1")
                
    chat_color(id,"!t[Godfather] !gSaklanbac Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")  
                
            } 
            
            case 
    2: { 
                
    server_cmd("amx_weapon @T shield")
                
    server_cmd("amx_unammo @all 1")
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_disarm @CT")
                
    server_cmd("amx_weapon @CT 100")
                
    chat_color(id,"!t[Godfather] !gSparta Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]"
                
            } 
            
            case 
    3: { 
                
    server_cmd("amx_glow @T blue"
                
    server_cmd("amx_godmode @CT 1"
                
    server_cmd("amx_heal @CT 9999999"
                
    server_cmd("amx_disarm @all"
                
    server_cmd("amx_unammo @CT 1"
                
    server_cmd("amx_fire @CT 1")
                
    cs_set_user_model(id,"dolboeb")
                
    chat_color(id,"!t[Godfather] !gYakartop Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            
            case 
    4: { 
                
    server_cmd("amx_weapon @T 43"
                
    server_cmd("amx_weapon @T 42"
                
    server_cmd("amx_weapon @T 14"
                
    server_cmd("amx_weapon @T 48"
                
    server_cmd("amx_armor @all 100"
                
    server_cmd("amx_heal @T 900"
                
    server_cmd("amx_weapon @CT 100"
                
    server_cmd("amx_unammo @all 1")
                
    server_cmd("amx_godmode @CT 1")
                
    chat_color(id,"!t[Godfather] !gCete Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            case 
    5: { 
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_speed @CT 1"
                
    server_cmd("amx_disarm @all"
                
    cs_set_user_model(id,"dolboeb"
                
    chat_color(id,"!t[Godfather] !gYakalanbac Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
                
            } 
            case 
    6: { 
                
    server_cmd("amx_heal @CT 500"
                
    server_cmd("amx_disarm @all")
                
    chat_color(id,"!t[Godfather] !gSimit Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
                
            } 
            case 
    7: { 
                
    server_cmd("amx_godmode @CT 1"
                
    server_cmd("amx_heal @ct 1200"
                
    chat_color(id,"!t[Godfather] !gCT Koruma Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
                
                
            } 
            case 
    8: {
                
    server_cmd("amx_godmode @all 0"
                
    server_cmd("amx_unammo @all 0"
                
    server_cmd("amx_speed @all 0"
                
    server_cmd("amx_noclip @all 0"
                
    server_cmd("amx_cvar sv_gravity 800"
                
    server_cmd("amx_glow @all off"
                
    server_cmd("amx_cvar mp_friendlyfire 0")
                
    server_cmd("amx_cvar sv_voiceenable 1")
                
    server_cmd("amx_cvar sv_gravity 800")
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_unfire @all")
                
    server_cmd("amx_cvar sv_parachute 1")
                
    server_cmd("amx_revive @CT")
                
    server_cmd("amx_revive @CT")
                
    set_lights("#OFF")
                
    server_cmd("amx_revive @CT"
                
    server_cmd("amx_revive @CT")
                
    cs_set_user_model(id,"mgacounter")
                new 
    players[32],inum;
                
    get_players(players,inum,"e","TERRORIST")
                for(new 
    i=0;i<inum;i++) {
                    
    cs_reset_user_model(players[i])
                }
                
    chat_color(id,"!t[Godfather] !gAYARLAR SIFIRLANDI!!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]"
                
                
            } 
            case 
    9: {
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_bury @T"
                
    server_cmd("amx_weapon @T 91")
                
    chat_color(id,"!t[Godfather] !gC4 Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gC4 Dusuren olursa menuden C4 verin.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            
            case 
    10: { 
                
    server_cmd("amx_weapon @T 91")
                
    chat_color(id,"!t[Godfather] !gT ye C4 Verildi!")
                
    chat_color(id,"!t[Godfather] !gT ye C4 Verildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            
            case 
    11: { 
                
    server_cmd("amx_heal @CT 900"
                
    server_cmd("amx_disarm @all"
                
    server_cmd("amx_weapon @T 43"
                
    server_cmd("amx_weapon @T 14"
                
    server_cmd("amx_noclip @CT 1"
                
    server_cmd("amx_armor @all 100"
                
    cs_set_user_model(id,"ghost"
                
    chat_color(id,"!t[Godfather] !gHayalet Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            
            case 
    12: { 
                
    server_cmd("amx_glow @T white"
                
    server_cmd("amx_disarm @all"
                
    server_cmd("amx_weapon @CT 100"
                
    server_cmd("amx_heal @CT 30000"
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_cvar sv_gravity 100")
                
    server_cmd("amx_unammo @all 1")
                new 
    players[32],inum;
                
    get_players(players,inum,"e","TERRORIST")
                for(new 
    i=0;i<inum;i++) {
                    
    cs_set_user_model(players[i],"kus")
                }
                
    chat_color(id,"!t[Godfather] !gKus Avi Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            } 
            
            case 
    13: {
                
    server_cmd("amx_disarm @all")
                
    server_cmd("amx_cvar sv_gravity 200")
                
    server_cmd("amx_cvar mp_flashlight 1")
                
    server_cmd("amx_cvar sv_voiceenable 0")
                
    server_cmd("amx_weapon @T 100")
                
    server_cmd("amx_weapon @T 49")
                
    server_cmd("amx_weapon @T 43")
                
    server_cmd("amx_weapon @T 42")
                
    server_cmd("amx_weapon @T 46")
                
    server_cmd("amx_heal @CT 15000")
                
    emit_sound(id,CHAN_VOICE,"zombie_plague/zombie_madness1.wav"1.0ATTN_NORM0PITCH_NORM)
                
    set_lights("b")
                
    cs_set_user_model(id,"mga_draqula")
                
    chat_color(id,"!t[Godfather] !gZombi Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    14: {
                
    server_cmd("amx_glow @CT 0 0 0 0")
                
    server_cmd("amx_disarm @all")
                
    server_cmd("amx_weapon @T 43")
                
    server_cmd("amx_weapon @T 43")
                
    server_cmd("amx_weapon @T 42")
                
    server_cmd("amx_weapon @T 100")
                
    chat_color(id,"!t[Godfather] !gKorebe Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
                
            }
            
            case 
    15: {
                
    server_cmd("amx_disarm @all")
                
    server_cmd("amx_weapon @all 43")
                
    server_cmd("amx_weapon @all 42")
                
    server_cmd("amx_weapon @CT 100")
                
    server_cmd("amx_weapon @T 46")
                
    server_cmd("amx_weapon @T 14")
                
    server_cmd("amx_unammo @all 1")
                
    server_cmd("amx_heal @CT 400")
                
    chat_color(id,"!t[Godfather] !gCatisma Oyunu Aktif Edildi.!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    16: {
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_cvar sv_gravity 100")
                
    server_cmd("amx_heal @CT 999999")
                
    server_cmd("amx_godmode @CT 1")
                new 
    players[32],inum;
                
    get_players(players,inum,"e","TERRORIST")
                for(new 
    i=0;i<inum;i++) {
                    
    cs_set_user_model(players[i],"dolboeb")
                }
                
    chat_color(id,"!t[Godfather] !gUcan Pipi Oyunu Aktif Edildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    17: {
                
    server_cmd("amx_disarm @T")
                
    server_cmd("amx_bury @T")
                
    server_cmd("mp_friendlyfire 1")
                
    server_cmd("amx_cvar mp_friendlyfire 1")
                
    server_cmd("amx_heal @CT 9999999")
                
    server_cmd("amx_godmode @CT 1")
                
    chat_color(id,"!t[Godfather] !gSustum Deagle Oyunu Aktif Edildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    18: {
                
    server_cmd("amx_bury @T")
                
    chat_color(id,"!t[Godfather] !gT GOMULDU!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    19: {
                
    server_cmd("amx_unbury @T")
                
    chat_color(id,"!t[Godfather] !gT yerden cikartildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    20: {
                
    server_cmd("sv_parachute 0")
                
    server_cmd("amx_cvar sv_parachute 0")
                
    chat_color(id,"!t[Godfather] !gKule oyunu acildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    21: {
                
    server_cmd("sv_parachute 1")
                
    server_cmd("amx_cvar sv_parachute 1")
                
    chat_color(id,"!t[Godfather] !gKule oyunu bitti!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    22: {
                
    server_cmd("amx_glow @T 0 0 0 0")
                
    server_cmd("amx_cvar mp_friendlyfire 1")
                
    server_cmd("mp_friendlyfire 1")
                
    chat_color(id,"!t[Godfather] !gAref basladi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    23: {
                
    server_cmd("amx_glow @T off")
                
    server_cmd("amx_cvar mp_friendlyfire 0")
                
    server_cmd("mp_friendlyfire 0")
                
    chat_color(id,"!t[Godfather] !gAref kapatildi!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            
            case 
    24: {
                
    server_cmd("amx_godmode @CT 1")
                
    server_cmd("amx_heal @CT 999999")
                
    cs_set_user_model(id,"kopekbaligi")
                
    chat_color(id,"!t[Godfather] !gRRRrrr!!Kopekbaligi Aktif!!")
                
    chat_color(id,"!t[Godfather] !gPlugin Yapim : DAYI[CPT]")
                
            }
            case 
    25: {
                
    cmdReviveMenu(id);
                
            }
            
        }
        return 
    PLUGIN_CONTINUE
    }

    public 
    cmdReviveMenu(id) {
        
        new 
    menu menu_create("\yRevive Menu","menu_handlerx")
        
        new 
    players[32],inum,Uid;
        new 
    szName[32], szID[10];
        
    get_players(players,inum,"b")
        for(new 
    i;i<inum;i++) {
            
    Uid players[i];
            
    get_user_name(Uid,szName,31)
            
    num_to_str(Uid,szID,9)
            
            
    menu_additem(menu,szName,szID,0)
        }
        
    menu_display(id,menu,0)
        return 
    PLUGIN_CONTINUE
    }
    public 
    menu_handlerx(id,menu,item) {
        if(
    item==MENU_EXIT) {
            
    menu_destroy(menu)
            return 
    PLUGIN_HANDLED
        
    }
        new 
    data[6],szName[32];
        new 
    access,callback;
        
    menu_item_getinfo(menu,item,access,data,charsmax(data),szName,charsmax(szName),callback)
        
        new 
    Uid str_to_num(data);
        
        if(!
    is_user_alive(Uid) && is_user_connected(Uid)) {
            if(
    get_user_flags(Uid) & ADMIN_IMMUNITY) {
                
    cmdReviveMenu(id)
                
    client_print(id,print_chat,"Bu Kisi Dokunulmaz !")
                return 
    PLUGIN_HANDLED
            
    }
            
    ExecuteHamB(Ham_CS_RoundRespawn,Uid)
            
    set_task(0.1,"Silah_Sil",Uid)
            
            new 
    admin[32];
            
    get_user_name(id,admin,31)
            
    client_print(id,print_chat,"[AMXX] Admin %s: %s Adli Oyuncuyu Canlandirdi !",admin,szName)
        }
        
    cmdReviveMenu(id)
        return 
    PLUGIN_HANDLED
        
    }
    public 
    Silah_Sil(id) {
        if(
    get_user_team(id) == 1) {
            
    strip_user_weapons(id)
            
    give_item(id,"weapon_knife")
        }
    }

    stock chat_color(const id, const input[], any:...)
    {
        new 
    count 1players[32]
        static 
    msg[191]
        
    vformat(msg190input3)
        
        
    replace_all(msg190"!g""^4"//yesil
        
    replace_all(msg190"!y""^1"//sari
        
    replace_all(msg190"!t""^3"//takim-rengi
        
    replace_all(msg190"!team2""^0"//bilmiom
        
        
    if (id) {
            
    players[0] = id
        }
        
        else {
            
    get_players(playerscount"ch")
            for (new 
    0counti++) {
                if (
    is_user_connected(players[i])) {
                    
    message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                    
    write_byte(players[i]);
                    
    write_string(msg);
                    
    message_end();
                }
            }
        }
        

    Yapıştır CTRL+I yap. Yine olmazsa hazır sma atayım.
    Konu akcaliberkk tarafından (31-12-12 Saat 20:27 ) 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/


  3. #3
    cavus er
    Üyelik tarihi
    Nov 2012
    Mesajlar
    151
    Bahsedildi
    0 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    8

    Standart Cevap: Sma m hata veriyor ( Loose indentation 217)

    Teşşekür ederim peki : Menüden bir şey açınca menünün kapanmaması için hangi kodu kullanmalıyım ?

  4. #4
    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: Sma m hata veriyor ( Loose indentation 217)

    Önce
    menuyu handle eden publicin (yani menu_handler in) sonunda menu_destroy(menu) fonksiyonu varsa sil.
    Daha sonra en sondaki return PLUGIN_HANDLED ın üstüne menu_display(id,menu,0) yaz.

    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/


  5. #5
    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: Sma m hata veriyor ( Loose indentation 217)

    Alıntı Plugin İstek Bölümü Kuralları Nickli Üyeden Alıntı Mesajı göster
    2. Açtığınız konuyu en fazla 2 günde bir kontrol etmeniz gerekmektedir. Konunuza en son verilmiş olası bir çözüm yanıtı üzerinden 3 gün geçtiğinde, konunuz çözülmüş olarak kabul edilecek ve "Çözülmüş İstekler" bölümüne taşınacaktır.
    Konu Çözülmüş İstekler bölümüne taşındı.

    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. Cevaplar: 2
    Son Mesaj: 14-02-12, 21:41

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

jailmenu.sma

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