Eklenti herkesi specde bırakıyor

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Cevapla
Pzt May 25, 2020 12:10 am
Kullanıcı avatarı

Konu Sahibi
Mesajlar: 278
Kayıt: Cum Haz 03, 2016 8:13 pm
Merhaba, eklenti hlds test sunucusunda başarılı bir şekilde çalışıyor. Ama sunucuya kurduğumda herkes specde kalıyor? yardımcı olursanız sevinirim.

Kod: Tümünü seç

/* 
İzinsiz Paylaşımı Yasaktır
*/

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>

#define PLUGIN "DM Guns Menu"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"
#define UPDATE "JBERENJB & boundless"

/////////////Server//Kurallari/////////////
/*===================================*////////
#define KURAL1 "Emege saygi icin facebook sayfamizi begeniniz."
#define KURAL2 "www.facebook.com/CooLMaTZeeJailbreak"
#define KURAL3 "Sunucumuzda Gereksiz Kufur Yasaktir"
#define KURAL4 "Saygi ve Sevgi Cercevesinde Konusalim"
#define KURAL5 "Adminlere karsi samimi konusabilirsiniz ( yeterince )"
/*===================================*//////////
//////////////////Adminlik//Kurallari////////////
/*===================================*///////////
#define AKURAL1 "Gereksiz Yetki Kullanimi Yasak"
#define AKURAL2 "Oyunculara karsi sempatik davranin"
#define AKURAL3 "Saygi ve Sevgi Cercevesinde Konusalim"
#define AKURAL4 "Sunucumuzda Gereksiz Kufur Yasaktir"
#define AKURAL5 "TSDE OLMAK ZORUNLUDUR"
/*===================================*//////////
///////////////////Server Bilgileri////////////////
/*===================================*//////////
#define BILGI1 "Sunucu IP : 213.238.173.27"
#define BILGI2 "Sunucu DNS : Cs27.CSDuragi.Com"
#define BILGI3 "Konsoldan Baglanma : connect cs27.csduragi.com"
#define BILGI4 "TeamSpeak 3 IP : Check-Host.net veya YaTQA uzerinden bulabilirsiniz"
#define BILGI5 "TeamSpeak 3 DNS : ts3.coolmatzee.net"
#define BILGI6 "Oyuncu Islem Panel : www.coolmatzee.com"
#define BILGI7 "Oyuncu Forumu : www.coolmatzee.org"
/*===================================*//////////
new bool:auto[33];
new last_primary[33][32];
new last_secondary[33][32];
new grenades[33];


new const g_weapons[] =
{
    CSW_P228,
    CSW_SCOUT,
    CSW_XM1014,
    CSW_MAC10,
    CSW_AUG,
    CSW_ELITE,
    CSW_FIVESEVEN,
    CSW_UMP45,
    CSW_SG550,
    CSW_GALIL,
    CSW_FAMAS,
    CSW_USP,
    CSW_GLOCK18,
    CSW_AWP,
    CSW_MP5NAVY,
    CSW_M249,
    CSW_M3,
    CSW_M4A1,
    CSW_TMP,
    CSW_G3SG1,
    CSW_DEAGLE,
    CSW_SG552,
    CSW_AK47,
    CSW_P90
}

new const g_max_bp[] =
{
    52,
    90,
    32,
    100,
    90,
    120,
    100,
    100,
    90,
    90,
    90,
    100,
    120,
    30,
    120,
    200,
    32,
    90,
    120,
    90,
    35,
    90,
    90,
    100
}

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    RegisterHam( Ham_Spawn, "player", "SpawnPost",1)
    
    register_clcmd("say /guns","ActivateMenu")
    register_clcmd("say /silah","ActivateMenu")
    register_clcmd("say /grenades","SwitchGrenades")
    register_clcmd("say /bomba","SwitchGrenades")
}
public SpawnPost(id) {
    if(!is_user_alive(id)) return;
    
    strip_user_weapons(id)
    give_item(id,"weapon_knife")
    if(auto[id]) {
        give_item(id,last_primary[id])
        give_item(id,last_secondary[id])
    }
    else {
        ShowGunsMenu(id)
    }
    if(grenades[id] == 2) {
        give_item(id,"weapon_hegrenade")
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_smokegrenade")
    }
    
    refill_weapons(id)
}
public ShowGunsMenu(id) {
    
    new menu = menu_create("\y[CooLMaTZee GaminG] \r-- \yGelismis DeathMatch Menu^n\dIyi Oyunlar...","menu_handler")
        
    menu_additem(menu,"\w[\rYeni Silahlar Al\w]","1")
    
    if(last_primary[id][0] == 0 && last_secondary[id][0] == 0) {
        menu_additem(menu,"\r[\yOnceki Elde Alinan Silahlari Al\d]","9")
        menu_additem(menu,"\r[\yHep Ayni Silahlari Al\d]","9")
    }
    else {
        menu_additem(menu,"\d[\wOnceki Elde Alinan Silahlari Al\w]","2")
        menu_additem(menu,"\d[\wHep Ayni Silahlari Al\w]","3")
    }
    menu_additem(menu,"\w[\rDestek Menusu\w]","4")
    
    menu_setprop(menu,MPROP_EXIT,MEXIT_NEVER)
    menu_display(id,menu,0)
}
public menu_handler(id,menu,item) {
    new data[6],name[64];
    new access,callback;
    menu_item_getinfo(menu, item, access, data, 5, name, 63, callback)
    switch(str_to_num(data)) {
        case 1:{
            ShowNewGunsMenu(id);
        }
        case 2:{
            give_item(id,last_primary[id])
            give_item(id,last_secondary[id])
            if(grenades[id] == 2) {
                give_item(id,"weapon_hegrenade")
                give_item(id,"weapon_flashbang")
                give_item(id,"weapon_smokegrenade")
            }
            
            refill_weapons(id)
        }
        case 3:{
            give_item(id,last_primary[id])
            give_item(id,last_secondary[id])
            if(grenades[id] == 2) {
                give_item(id,"weapon_hegrenade")
                give_item(id,"weapon_flashbang")
                give_item(id,"weapon_smokegrenade")
            }
            
            refill_weapons(id)
            auto[id] = true;
            client_print(id,print_chat,"[CooL Menu] Artik size Silah Menusu gosterilmeyecek. Tekrar gosterilmesini isterseniz /guns veya /silah yaziniz.")
        }
        case 9: {
            ShowGunsMenu(id)
        }
        case 4: {
            helpermenu(id)
        }
    }
    menu_destroy(menu)
}
public ShowNewGunsMenu(id) {
    new menu = menu_create("\w[Cs27.CSDuragi.Com] \d-- \yBirincil Silah Secimi","menu_handler2")
    menu_additem(menu,"\w[\rM4A1 - Colt\w]","weapon_m4a1")
    menu_additem(menu,"\w[\rAK47 - Keles\w]","weapon_ak47")
    menu_additem(menu,"\w[\rAwp\w]","weapon_awp")
    menu_additem(menu,"\w[\rMP5\w]","weapon_mp5navy")
    menu_additem(menu,"\w[\rAUG\w]","weapon_aug")
    menu_additem(menu,"\w[\rSG552\w]","weapon_sg552")
    menu_additem(menu,"\w[\rG3SG1\w]","weapon_g3sg1")
    menu_additem(menu,"\w[\rSG550\w]","weapon_sg550")
    menu_additem(menu,"\w[\rGalil\w]","weapon_galil")
    menu_additem(menu,"\w[\rFamas\w]","weapon_famas")
    menu_setprop(menu,MPROP_EXIT,MEXIT_NEVER)
    menu_display(id,menu,0)
}
public menu_handler2(id,menu,item) {
    new data[32],name[64];
    new access,callback;
    menu_item_getinfo(menu, item, access, data, 31, name, 63, callback)
    
    give_item(id,data)
    copy(last_primary[id],31,data)
    
    ShowSecondaryMenu(id)
    
    menu_destroy(menu)
}
public ShowSecondaryMenu(id) {
    new menu = menu_create("\rIkincil Silah Secimi","menu_handler3")
    menu_additem(menu,"\w[\rUsp\w]","weapon_usp")
    menu_additem(menu,"\w[\rP228\w]","weapon_p228")
    menu_additem(menu,"\w[\rElite\w]","weapon_elite")
    menu_additem(menu,"\w[\rFiveSeven\w]","weapon_fiveseven")
    menu_additem(menu,"\w[\rDeagle\w]","weapon_deagle")
    menu_setprop(menu,MPROP_EXIT,MEXIT_NEVER)
    menu_display(id,menu,0)
}
public menu_handler3(id,menu,item) {
    new data[32],name[64];
    new access,callback;
    menu_item_getinfo(menu, item, access, data, 31, name, 63, callback)
    
    give_item(id,data)
    copy(last_secondary[id],31,data)
    
    if(!grenades[id]) {
        ShowGrenadeMenu(id)
    }
    if(grenades[id] == 2) {
        give_item(id,"weapon_hegrenade")
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_smokegrenade")
    }
            
    refill_weapons(id)
    menu_destroy(menu)
}
public helpermenu(id) {
    static Item[64]

    formatex(Item, charsmax(Item),"\w[Cs27.CSDuragi.Com\w] \d-- \yGelismis Yardim Menu")
    new Menu = menu_create(Item, "helpermenu2")

    formatex(Item, charsmax(Item),"\w[\yServer Kurallari\w] \d[100 TL]")
    menu_additem(Menu, Item, "1")

    formatex(Item, charsmax(Item),"\w[\yTeamSpeak 3 Baglan\w] \d[16000 TL]")
    menu_additem(Menu, Item, "2")

    formatex(Item, charsmax(Item),"\w[\yAdminlik Kurallari\w] \d[1000 TL]")
    menu_additem(Menu, Item, "3")

    formatex(Item, charsmax(Item),"\w[\yServer Bilgileri\w] \d[16000 TL]")
    menu_additem(Menu, Item, "4")

    menu_setprop(Menu,MPROP_EXITNAME,"Cikis")
    menu_display(id, Menu,0)

}
public helpermenu2(id, menu, item) {
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);

    switch(key)
    {
        case 1:{
            if(cs_get_user_money(id) >= 0)
            {
////////Server//Kurallari/////////////
			static motd[99991], len;
			len = format(motd, 99990,"<body bgcolor=#000000><font color=#9999cefa><pre>");	
			len += format(motd[len], 99990-len,"<center><h4><font color=^"pink^">Server Kurallari</font></h4></center>^n^n^n");
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",KURAL1);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",KURAL2);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",KURAL3);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",KURAL4);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",KURAL5);	
		
			ChatColor(id, motd, "Server Kurallari");
			
			return 0;
            }
            else {
                ChatColor(id,"!teamYeterli Paran Yok")
            }
        }
        case 2:{
            if(cs_get_user_money(id) >= 0)
            {
		console_cmd(id,"say /ts3")
                ChatColor(id,"!teamBasarili Bir Sekilde -> !y[ !gTS3 Baglantisi Yapiyorsunuz !y] !teamAldiniz.")
            }
            else {
                ChatColor(id,"!teamYeterli Paran Yok")
            }
        }
        case 3:{
            if(cs_get_user_money(id) >= 0)
            {
////////Adminlik//Kurallari/////////////
			static motd[99991], len;
			len = format(motd, 99990,"<body bgcolor=#000000><font color=#9999cefa><pre>");	
			len += format(motd[len], 99990-len,"<center><h4><font color=^"pink^">Adminlik Kurallari</font></h4></center>^n^n^n");
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",AKURAL1);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",AKURAL2);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",AKURAL3);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",AKURAL4);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",AKURAL5);

			ChatColor(id, motd, "Adminlik Kurallari");
			
			return 0;	
            }
            else {
                ChatColor(id,"!teamYeterli Paran Yok")
            }
        }
        case 4:{
          ////////Server//Bilgileri/////////////
			static motd[99991], len;
			len = format(motd, 99990,"<body bgcolor=#000000><font color=#9999cefa><pre>");	
			len += format(motd[len], 99990-len,"<center><h4><font color=^"pink^">Slotluk Kurallari</font></h4></center>^n^n^n");
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI1);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI2);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI3);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI4);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI5);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI6);
			len += format(motd[len], 99990-len,"<left><font color=^"white^"> 1-) </color></left><font color=^"red^">%s</right>^n",BILGI7);
			
			ChatColor(id, motd, "Server Bilgileri");
			
			return 0;	
            }
    }
    return PLUGIN_HANDLED
}
public ShowGrenadeMenu(id) {
}
public menu_handler4(id,menu,item) {
    new data[6],name[64];
    new access,callback;
    menu_item_getinfo(menu, item, access, data, 5, name, 63, callback)
    
    switch(str_to_num(data)) {
        case 1:{
            give_item(id,"weapon_hegrenade")
            give_item(id,"weapon_flashbang")
            give_item(id,"weapon_smokegrenade")
            grenades[id] = 2
            client_print(id,print_chat,"[CooL Menu] Artik size her el bomba verilecek. Bu ayari degistirmek icin /bomba veya /grenades yazin.")
        }
        case 2:{
            grenades[id] = 1
            client_print(id,print_chat,"[CooL Menu] Artik size hicbir zaman bomba verilmeyecek. Bu ayari degistirmek icin /bomba veya /grenades yazin.")
        }
    }
    
    menu_destroy(menu)
}
public ActivateMenu(id) {
    auto[id] = false;
    client_print(id,print_chat,"[CooL Menu] Silah menusunu aktif ettiniz. Bir dahaki sefere tekrar yeni silah secebilirsiniz.")
}
public SwitchGrenades(id) {
    client_print(id,print_chat,"[CooL Menu] Bomba ayarinizi: ^"%s^" olarak degistirdiniz. Artik size %s",grenades[id] == 2 ? "Hicbir Zaman Bomba Verilmesin":"Her El Bomba Verilsin",grenades[id] == 2 ? "bomba verilmeyecek.":"her el bomba verilecek.")
    grenades[id] = grenades[id] == 2 ? 1 : 2;
}
stock refill_weapons(id) {
    new weapons[32],inum;
    get_user_weapons(id,weapons,inum)
    for(new i;i<inum;i++) {
        for(new a;a < sizeof(g_weapons); a++) {
            if(weapons[i] == g_weapons[a]) {
                cs_set_user_bpammo(id,weapons[i],g_max_bp[a])
            }
        }
    }
}
stock ChatColor(const id, const input[], any:...)
{
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);

    replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
    replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
    replace_all(msg, 190, "!team", "^x03"); // Takım Renk( CT mavi , T kırmızı )

    if (id) players[0] = id; else get_players(players, count, "ch");
    {
        for (new i = 0; i < count; i++)
    {
    if (is_user_connected(players[i]))
    {
    
        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
        write_byte(players[i]);
        write_string(msg);
        message_end();
            }

        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 

Kod: Tümünü seç

 <meta name="keywords" content="Gman"></meta>
#HomeFest
CooLMaTZee GaminG Since 2009
Server Adress
Cs27.CSDuragi.Com
#Web Sitelerimiz bakımdadır. Firmanın index sayfasından dolayı bildirmenize gerek yok.

Etiketler:
Link:
Linklerini gizle
Linki Kopyala

Cevapla