Serwery wiaderko.com Zwiń / Rozwiń kategorię

HashJama [TP] 193.33.176.148:27015 | tp.wiaderko.com status serwera HashJama [TP] połącz

HashJama CS:GO [DM] 193.33.176.53:27015 | dm.wiaderko.com status serwera HashJama CS:GO [DM] połącz

HashJama CS:GO [FFA] 193.33.176.15:27015 | ffa.wiaderko.com status serwera HashJama CS:GO FFA [FFA] połącz

HashJama [TeamSpeak 3] 62.210.99.220:9987 | ts.wiaderko.com status serwera HashJama [TP ELITE] 62.210.99.220:27015 połącz

SPONSOR:
pukawka.pl

Nabór na JUNIOR ADMINA forum - Więcej informacji > Klik <
Pokaż wyniki od 1 do 6 z 6
  1. #1
    Lamka Awatar Snejk
    Dołączył
    Jul 2009
    Posty
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Runda rozgrzewkowa.

    Proszę o pomoc, edytowałem plugin salomona i nie działa:( Co zrobiłem źle?
    Kod:
    #include <amxmodx>
    #include <fun>
    
    new bool:isrestart = false
    new timer
    
    new const muzyczka2[] = {"sound/misc/muzyczka.mp3"}
    
    public plugin_precache()
    {
     precache_generic(muzyczka2)
    }
    
    public plugin_init()
    {
      register_plugin("Crazy Restart", "4.8", "Salomon")
    
      register_event("TextMsg","START","a","2&#Game_C")
       
      register_cvar("crazy_restart","1")
      register_cvar("crazy_restart_time","45")
      register_cvar("crazy_restart_weapon","weapon_m3")
    
      register_clcmd("drop","block")
      register_clcmd("cl_setautobuy","block")
      register_clcmd("cl_autobuy","block")
      register_clcmd("cl_setrebuy","block")
      register_clcmd("cl_rebuy","block")
      register_clcmd("buy","block")
      register_clcmd("glock","block")
      register_clcmd("usp","block")
      register_clcmd("p228","block")
      register_clcmd("deagle","block")
      register_clcmd("elites","block")
      register_clcmd("fn57","block")
      register_clcmd("m3","block")
      register_clcmd("autoshotgun","block")
      register_clcmd("mac10","block")
      register_clcmd("tmp","block")
      register_clcmd("mp5","block")
      register_clcmd("ump45","block")
      register_clcmd("p90","block")
      register_clcmd("galil","block")
      register_clcmd("ak47","block")
      register_clcmd("scout","block")
      register_clcmd("sg552","block")
      register_clcmd("awp","block")
      register_clcmd("g3sg1","block")
      register_clcmd("famas","block")
      register_clcmd("m4a1","block")
      register_clcmd("bullpup","block")
      register_clcmd("sg550","block")
      register_clcmd("m249","block")
      register_clcmd("shield","block")
      register_clcmd("primammo","block")
      register_clcmd("secammo","block")
      register_clcmd("vest","block")
      register_clcmd("vesthelm","block")
      register_clcmd("flash","block")
      register_clcmd("hegren","block")
      register_clcmd("sgren","block")
      register_clcmd("nvgs","block")
    
      register_clcmd("weapon_knife", "block")
      register_clcmd("weapon_sg550", "block")
      register_clcmd("weapon_mac10", "block")
      register_clcmd("weapon_aug", "block")
      register_clcmd("weapon_xm1014", "block")
      register_clcmd("weapon_p90", "block")
      register_clcmd("weapon_c4", "block")
      register_clcmd("weapon_tmp", "block")
      register_clcmd("weapon_mp5navy", "block")
      register_clcmd("weapon_ump45", "block")
      register_clcmd("weapon_m4a1", "block")
      register_clcmd("weapon_awp", "block")
      register_clcmd("weapon_g3sg1", "block")
      register_clcmd("weapon_sg552", "block")
      register_clcmd("weapon_scout", "block")
      register_clcmd("weapon_m3", "block")
      register_clcmd("weapon_m249", "block")
      register_clcmd("weapon_ak47", "block")
      register_clcmd("weapon_fiveseven", "block")
      register_clcmd("weapon_usp", "block")
      register_clcmd("weapon_glock18", "block")
      register_clcmd("weapon_deagle", "block")
      register_clcmd("weapon_p228", "block")
      register_clcmd("weapon_elite", "block")
      register_clcmd("weapon_flashbang", "block")
      register_clcmd("weapon_hegrenade", "block")
      register_clcmd("weapon_smokegrenade", "block")
    
      register_clcmd("lastinv", "block")
    }
    
    public start()
    {
      timer = get_cvar_num("crazy_restart_time")
    
      new Float:res_time = get_cvar_float("crazy_restart_time")
    
      if(get_cvar_num("crazy_restart") == 1)
       {
        isrestart = true
    
    //dodajemy pluginy ktore chcemy zatrzymac na czas rundy nozowej
    //a robimy to w nastepujacy sposob
    //server_cmd("sv_alltalk 1")
    server_cmd("sv_alltalk 1")
    //server_cmd("amx_pausecfg pause amx_super.amxx.amxx")
    //server_cmd("amx_pausecfg pause alt_end_round_sounds.amxx.amxx")
    //server_cmd("amx_pausecfg pause alt_end_round_sounds[old].amxx.amxx")
    //server_cmd("amx_pausecfg pause statscfg.amxx.amxx")
    //server_cmd("amx_pausecfg pause statsx.amxx.amxx")
    server_cmd("amx_pausecfg pause amx_super.amxx.amxx")
    server_cmd("amx_pausecfg pause alt_end_round_sounds.amxx.amxx")
    server_cmd("amx_pausecfg pause alt_end_round_sounds[old].amxx.amxx")
    server_cmd("amx_pausecfg pause statscfg.amxx.amxx")
    server_cmd("amx_pausecfg pause statsx.amxx.amxx")
    //server_cmd("amx_pausecfg pause nazwa_pluginu2.amxx")
    //dopisujemy te pluginy ktore chcemy zatrzymac i te same spowrotem
    //wlaczamy nizej
    
        set_task(res_time + 1, "end")
        set_task(3.0, "muzyczka")
        set_task(1.0, "count_me", 123, _, _, "b")
        set_task(4.0, "ammo", 123, _, _, "b")
       }
    }
    
    public muzyczka()
    {
     client_cmd(0, "mp3 play %s", muzyczka2)
    }
    
    public ammo()
    {
      new weapon[192]
      get_cvar_string("crazy_restart_weapon", weapon, 191)
    
      for(new i = 1; i <= get_playersnum(); i++)
      {
      give_item(i, weapon)
      engclient_cmd(i, weapon)
      }
    }
    
    public end()
    {
     isrestart = false
    
     remove_task(123)
    
    //tu spowrotem wlaczamy pluginy ktore zatrzymalismy wyzej
    //server_cmd("sv_alltalk 0")
    server_cmd("sv_alltalk 0")
    //server_cmd("amx_pausecfg enable amx_super.amxx.amxx")
    //server_cmd("amx_pausecfg enable alt_end_round_sounds.amxx.amxx")
    //server_cmd("amx_pausecfg enable alt_end_round_sounds[old].amxx.amxx")
    //server_cmd("amx_pausecfg enable statscfg.amxx.amxx")
    //server_cmd("amx_pausecfg enable statsx.amxx.amxx")
    server_cmd("amx_pausecfg enable amx_super.amxx.amxx")
    server_cmd("amx_pausecfg enable alt_end_round_sounds.amxx.amxx")
    server_cmd("amx_pausecfg enable alt_end_round_sounds[old].amxx.amxx")
    server_cmd("amx_pausecfg enable statscfg.amxx.amxx")
    server_cmd("amx_pausecfg enable statsx.amxx.amxx")
    //server_cmd("amx_pausecfg enable nazwa_pluginu2.amxx")
    //robimy tak z kazdym, a jak widac jedyne co sie zmienia to enable
    
     set_cvar_num("sv_restartround",1)
    }
    
    public count_me()
    {
        new red = random_num(5,255)
        new green = random_num(5,255)
        new blue = random_num(5,255)  
    
        set_hudmessage(red, green, blue, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
        show_hudmessage(0,"******************************^n Restart za %i sekund ^n******************************", timer)
    
        if(timer == 3)
        {
        client_cmd(0, "spk vox/three.wav")
        }
        if(timer == 2)
        {
        client_cmd(0, "spk vox/two.wav")
        }
        if(timer == 1)
        {
        client_cmd(0, "spk vox/one.wav")
        }
        timer--
    }
    
    public block(id)
    {
        if(isrestart)
            return PLUGIN_HANDLED
       
        return PLUGIN_CONTINUE
    }

  2. #2
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Runda rozgrzewkowa.

    Błąd przy kompilacji czy nieprawidłowo działa? Co zmieniałeś?
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  3. #3
    Lamka Awatar Snejk
    Dołączył
    Jul 2009
    Posty
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Runda rozgrzewkowa.

    skompilowało się normalnie, w sumie to nie testowałem wersji głównej, ale w tej zmieniłem tylko:
    Kod:
    register_cvar("crazy_restart_weapon","weapon_m3")
    i dodałem to:
    Kod:
    //server_cmd("amx_pausecfg pause amx_super.amxx.amxx")
    //server_cmd("amx_pausecfg pause alt_end_round_sounds.amxx.amxx")
    //server_cmd("amx_pausecfg pause alt_end_round_sounds[old].amxx.amxx")
    //server_cmd("amx_pausecfg pause statscfg.amxx.amxx")
    //server_cmd("amx_pausecfg pause statsx.amxx.amxx")
    server_cmd("amx_pausecfg pause amx_super.amxx.amxx")
    server_cmd("amx_pausecfg pause alt_end_round_sounds.amxx.amxx")
    server_cmd("amx_pausecfg pause alt_end_round_sounds[old].amxx.amxx")
    server_cmd("amx_pausecfg pause statscfg.amxx.amxx")
    server_cmd("amx_pausecfg pause statsx.amxx.amxx")
    i to:
    Kod:
    //server_cmd("amx_pausecfg enable amx_super.amxx.amxx")
    //server_cmd("amx_pausecfg enable alt_end_round_sounds.amxx.amxx")
    //server_cmd("amx_pausecfg enable alt_end_round_sounds[old].amxx.amxx")
    //server_cmd("amx_pausecfg enable statscfg.amxx.amxx")
    //server_cmd("amx_pausecfg enable statsx.amxx.amxx")
    server_cmd("amx_pausecfg enable amx_super.amxx.amxx")
    server_cmd("amx_pausecfg enable alt_end_round_sounds.amxx.amxx")
    server_cmd("amx_pausecfg enable alt_end_round_sounds[old].amxx.amxx")
    server_cmd("amx_pausecfg enable statscfg.amxx.amxx")
    server_cmd("amx_pausecfg enable statsx.amxx.amxx")
    i podmieniałem muzykę (tylko pliki, kodu nie edytowałem) i przed wejściem na server ściągała się normalnie, ale po wejściu nie było zadanej zmiany.

  4. #4
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Runda rozgrzewkowa.

    Kod:
    register_cvar("crazy_restart_weapon","weapon_m3")
    A jak było oryginalnie bo nie za bardzo kojarzę ten plugin?
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  5. #5
    Lamka Awatar Snejk
    Dołączył
    Jul 2009
    Posty
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Runda rozgrzewkowa.

    w orginalnej było tak:
    Kod:
     register_cvar("crazy_restart_weapon","weapon_deagle")
    @Edit

    Dodam najlepiej całe orginalne .sma, żeby było Ci łatwiej rozszyfrowac:

    Kod:
    #include <amxmodx>
    #include <fun>
    
    new bool:isrestart = false
    new timer
    
    new const muzyczka2[] = {"sound/misc/muzyczka.mp3"}
    
    public plugin_precache()
    {
     precache_generic(muzyczka2)
    }
    
    public plugin_init()
    {
      register_plugin("Crazy Restart", "4.8", "Salamon")
    
      register_event("TextMsg","start","a","2&#Game_C")
       
      register_cvar("crazy_restart","1")
      register_cvar("crazy_restart_time","45")
      register_cvar("crazy_restart_weapon","weapon_deagle")
    
      register_clcmd("drop","block")
      register_clcmd("cl_setautobuy","block")
      register_clcmd("cl_autobuy","block")
      register_clcmd("cl_setrebuy","block")
      register_clcmd("cl_rebuy","block")
      register_clcmd("buy","block")
      register_clcmd("glock","block")
      register_clcmd("usp","block")
      register_clcmd("p228","block")
      register_clcmd("deagle","block")
      register_clcmd("elites","block")
      register_clcmd("fn57","block")
      register_clcmd("m3","block")
      register_clcmd("autoshotgun","block")
      register_clcmd("mac10","block")
      register_clcmd("tmp","block")
      register_clcmd("mp5","block")
      register_clcmd("ump45","block")
      register_clcmd("p90","block")
      register_clcmd("galil","block")
      register_clcmd("ak47","block")
      register_clcmd("scout","block")
      register_clcmd("sg552","block")
      register_clcmd("awp","block")
      register_clcmd("g3sg1","block")
      register_clcmd("famas","block")
      register_clcmd("m4a1","block")
      register_clcmd("bullpup","block")
      register_clcmd("sg550","block")
      register_clcmd("m249","block")
      register_clcmd("shield","block")
      register_clcmd("primammo","block")
      register_clcmd("secammo","block")
      register_clcmd("vest","block")
      register_clcmd("vesthelm","block")
      register_clcmd("flash","block")
      register_clcmd("hegren","block")
      register_clcmd("sgren","block")
      register_clcmd("nvgs","block")
    
      register_clcmd("weapon_knife", "block")
      register_clcmd("weapon_sg550", "block")
      register_clcmd("weapon_mac10", "block")
      register_clcmd("weapon_aug", "block")
      register_clcmd("weapon_xm1014", "block")
      register_clcmd("weapon_p90", "block")
      register_clcmd("weapon_c4", "block")
      register_clcmd("weapon_tmp", "block")
      register_clcmd("weapon_mp5navy", "block")
      register_clcmd("weapon_ump45", "block")
      register_clcmd("weapon_m4a1", "block")
      register_clcmd("weapon_awp", "block")
      register_clcmd("weapon_g3sg1", "block")
      register_clcmd("weapon_sg552", "block")
      register_clcmd("weapon_scout", "block")
      register_clcmd("weapon_m3", "block")
      register_clcmd("weapon_m249", "block")
      register_clcmd("weapon_ak47", "block")
      register_clcmd("weapon_fiveseven", "block")
      register_clcmd("weapon_usp", "block")
      register_clcmd("weapon_glock18", "block")
      register_clcmd("weapon_deagle", "block")
      register_clcmd("weapon_p228", "block")
      register_clcmd("weapon_elite", "block")
      register_clcmd("weapon_flashbang", "block")
      register_clcmd("weapon_hegrenade", "block")
      register_clcmd("weapon_smokegrenade", "block")
    
      register_clcmd("lastinv", "block")
    }
    
    public start()
    {
      timer = get_cvar_num("crazy_restart_time")
    
      new Float:res_time = get_cvar_float("crazy_restart_time")
    
      if(get_cvar_num("crazy_restart") == 1)
       {
        isrestart = true
    
    //dodajemy pluginy ktore chcemy zatrzymac na czas rundy nozowej
    //a robimy to w nastepujacy sposob
    //server_cmd("amx_pausecfg pause nazwa_pluginu.amxx")
    //server_cmd("amx_pausecfg pause nazwa_pluginu2.amxx")
    //dopisujemy te pluginy ktore chcemy zatrzymac i te same spowrotem
    //wlaczamy nizej
    
        set_task(res_time + 1, "end")
        set_task(3.0, "muzyczka")
        set_task(1.0, "count_me", 123, _, _, "b")
        set_task(4.0, "ammo", 123, _, _, "b")
       }
    }
    
    public muzyczka()
    {
     client_cmd(0, "mp3 play %s", muzyczka2)
    }
    
    public ammo()
    {
      new weapon[192]
      get_cvar_string("crazy_restart_weapon", weapon, 191)
    
      for(new i = 1; i <= get_playersnum(); i++)
      {
      give_item(i, weapon)
      engclient_cmd(i, weapon)
      }
    }
    
    public end()
    {
     isrestart = false
    
     remove_task(123)
    
    //tu spowrotem wlaczamy pluginy ktore zatrzymalismy wyzej
    //server_cmd("amx_pausecfg enable nazwa_pluginu.amxx")
    //server_cmd("amx_pausecfg enable nazwa_pluginu2.amxx")
    //robimy tak z kazdym, a jak widac jedyne co sie zmienia to enable
    
     set_cvar_num("sv_restartround",1)
    }
    
    public count_me()
    {
        new red = random_num(5,255)
        new green = random_num(5,255)
        new blue = random_num(5,255)  
    
        set_hudmessage(red, green, blue, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
        show_hudmessage(0,"******************************^n Restart za %i sekund ^n******************************", timer)
    
        if(timer == 3)
        {
        client_cmd(0, "spk vox/three.wav")
        }
        if(timer == 2)
        {
        client_cmd(0, "spk vox/two.wav")
        }
        if(timer == 1)
        {
        client_cmd(0, "spk vox/one.wav")
        }
        timer--
    }
    
    public block(id)
    {
        if(isrestart)
            return PLUGIN_HANDLED
       
        return PLUGIN_CONTINUE
    }
    Ostatnio edytowane przez Snejk ; 08-07-2009 o 12:38

  6. #6
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Runda rozgrzewkowa.

    Skomentuj tego cvara i daj tutaj:
    Zamiast
    Kod:
      new weapon[192]
      get_cvar_string("crazy_restart_weapon", weapon, 191)
    
      for(new i = 1; i <= get_playersnum(); i++)
      {
      give_item(i, weapon)
      engclient_cmd(i, weapon)
      }
    }
    daj:
    Kod:
      //new weapon[192]
      //get_cvar_string("crazy_restart_weapon", weapon, 191)
    
      for(new i = 1; i <= get_playersnum(); i++)
      {
      give_item(i, "weapon_m3")
      engclient_cmd(i, "weapon_m3")
      }
    }
    Powinno działać
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

Podobne wątki

  1. Runda rozgrzewkowa
    By Kub@S in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 06-01-2011, 00:22
  2. runda rozgrzewkowa + na ckm+ bez mp3
    By timon005d in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 15-07-2010, 13:44
  3. Runda rozgrzewkowa????
    By DanY17 in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 6
    Ostatni post / autor: 20-04-2010, 15:08
  4. Runda rozgrzewkowa.
    By DanY17 in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 15-04-2010, 17:13
  5. Runda rozgrzewkowa
    By absolut in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 10-03-2010, 15:57
  6. Runda Rozgrzewkowa
    By KaMyK7 in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 11-11-2009, 21:32
  7. Runda rozgrzewkowa
    By urbans in forum Pisanie pluginów AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 29-06-2009, 14:13
  8. Runda rozgrzewkowa
    By Camper1992 in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 4
    Ostatni post / autor: 11-01-2009, 18:55
  9. Runda rozgrzewkowa
    By guanaBANA! in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 5
    Ostatni post / autor: 02-01-2009, 11:19
  10. runda rozgrzewkowa
    By =dj@work= in forum Amx Mod X
    Odpowiedzi: 4
    Ostatni post / autor: 07-04-2008, 18:47

Odwiedzający poszukiwali:

yhs-ddc_bd

Uprawnienia umieszczania postów

  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •