UWAGA
W związku z upgrade'em Forum Wiaderko do vB 4.x ewentualne błędy i nieprawidłowości proszę zgłaszać w tym temacie
Serwery Counter Strike 1.6 wiaderko.com

HashJama [TP] 193.33.176.148:27015 status serwera HashJama [TP] połącz

HashJama [FFA] 193.33.176.188:27015status serwera HashJama [FFA] połącz

HashJama [DM] 193.33.176.53:27015status serwera HashJama [DM] połącz

HashJama [Aim Hs] 193.33.176.15:27015status serwera HashJama [Aim Hs] połącz

HashJama [Flags] 193.33.176.111:27015status serwera HashJama  [Flags] połącz

HashJama [AWP/HG DM] 193.33.176.50:27015status serwera HashJama [AWP/HG DM] 193.33.176.50:27015 połącz

HashJama [TP #2] 193.33.176.54:27015status serwera HashJama [TP #2] 193.33.176.54:27015 połącz

wiaderko.com [Ventrilo] v1.svoice.pl:6416status serwera wiaderko.com [Ventrilo]

SPONSOR:
pukawka.pl

Wątek: restart

Pokaż wyniki od 1 do 4 z 4
  1. #1 restart 
    Spamer Awatar Lelek919
    Dołączył
    May 2008
    Posty
    114
    jak przerobic aby byko w mp3 muzyczka podczas auto restartu (tygrysek)

    /*
    * AMX Mod X script.
    * Auto restart Knives by pr0fesoreK~
    * Skrypt powstał na bazie skryptu Auto-Restart by VikuS
    * Działa tylko pod AMXX
    *
    * amx_auto_rr_knives -- 1-ON 0-OFF
    *
    * CVAR: auto_rr_time <time> default 48
    *
    */

    #include <amxmodx>
    #include <amxmisc>

    #define SETHUDMSG set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG1 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG2 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG3 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG4 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG5 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG6 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG7 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG8 set_hudmessage(42, 0, 255, 0.01, 0.79, 0, 6.0, 12.0)
    #define SETHUDMSG9 set_hudmessage(250, 100, 100, -1.0, 0.25, 1, 0.02, 1.0, 0.01, 0.1, 1)
    #define SETHUDMSG10 set_hudmessage(250, 075, 075, -1.0, 0.25, 1, 0.02, 1.0, 0.01, 0.1, 1)
    #define LEVEL_LEVEL ADMIN_CFG

    new bool:AutoRR = true
    new bool:knifeArena = false

    public plugin_init()
    {
    register_plugin("Auto-Restart-Knives","0.2","pr0fesoreK~")
    register_dictionary("auto_restart_knives.txt")
    register_concmd("amx_auto_rr_knives","auto_rr",LEVEL_LEVEL," - 1 : ON | 0 : OFF")
    register_cvar("auto_rr_time","48")
    register_cvar("say","")
    register_event("TextMsg","restart_time","a","2&#Game_C")
    register_event("CurWeapon","switchweapon","be","1=1","2!29")
    return PLUGIN_CONTINUE
    }

    public auto_rr(id)
    {
    if (!(get_user_flags(id)&LEVEL_LEVEL)) {
    client_print(id, print_console, "[AMXX] %L", LANG_PLAYER, "NO_ACCESS")

    return PLUGIN_HANDLED
    }

    new arg [2]
    read_argv(1,arg,1)

    if(equal(arg, "1"))
    {
    AutoRR = true
    client_print(id,print_console,"[AMXX] %L", LANG_PLAYER, "ENABLED")
    }
    else if(equal(arg, "0"))
    {
    AutoRR = false
    client_print(id,print_console,"[AMXX] %L", LANG_PLAYER, "DISABLED")
    }
    else if(!equal(arg, "1") || equal(!arg, "0"))
    {
    client_print(id,print_console,"amx_auto_rr_knives 1 = On | 0 = Off");
    }
    return PLUGIN_HANDLED
    }

    public switchweapon(id)
    {
    if (!knifeArena)
    return PLUGIN_CONTINUE

    engclient_cmd(id,"weapon_knife")
    return PLUGIN_CONTINUE
    }

    public restart_time()
    {
    if (AutoRR==true)
    {
    new restart_time=get_cvar_num("auto_rr_time")

    knifeArena = true
    pause("ac","antirusher.amxx")

    client_cmd(0,"spk misc/tygrysek.wav")

    SETHUDMSG
    show_hudmessage(0, "%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",restart_time)

    set_task(float(restart_time),"restart_map",0)
    set_task(float(restart_time)-1,"restart_1s",0)
    set_task(float(restart_time)-2,"restart_2s",0)
    set_task(float(restart_time)-3,"restart_3s",0)
    set_task(float(restart_time)-4,"restart_4s",0)
    set_task(float(restart_time)-5,"restart_5s",0)

    if (restart_time > 6)
    {
    set_task(float(restart_time)-6,"restart_6s",0)
    }
    if (restart_time > 7)
    {
    set_task(float(restart_time)-7,"restart_7s",0)
    }
    if (restart_time > 8)
    {
    set_task(float(restart_time)-8,"restart_8s",0)
    }
    if (restart_time > 9)
    {
    set_task(float(restart_time)-9,"restart_9s",0)
    }
    if (restart_time > 10)
    {
    set_task(float(restart_time)-10,"restart_10s",0)
    }
    if (restart_time > 11)
    {
    set_task(float(restart_time)-11,"restart_11s",0)
    }
    if (restart_time > 12)
    {
    set_task(float(restart_time)-12,"restart_12s",0)
    }
    if (restart_time > 13)
    {
    set_task(float(restart_time)-13,"restart_13s",0)
    }
    if (restart_time > 14)
    {
    set_task(float(restart_time)-14,"restart_14s",0)
    }
    if (restart_time > 15)
    {
    set_task(float(restart_time)-15,"restart_15s",0)
    }
    if (restart_time > 16)
    {
    set_task(float(restart_time)-16,"restart_16s",0)
    }
    if (restart_time > 17)
    {
    set_task(float(restart_time)-17,"restart_17s",0)
    }
    if (restart_time > 18)
    {
    set_task(float(restart_time)-18,"restart_18s",0)
    }
    if (restart_time > 19)
    {
    set_task(float(restart_time)-19,"restart_19s",0)
    }
    if (restart_time > 20)
    {
    set_task(float(restart_time)-20,"restart_20s",0)
    }
    if (restart_time > 21)
    {
    set_task(float(restart_time)-21,"restart_21s",0)
    }
    if (restart_time > 22)
    {
    set_task(float(restart_time)-22,"restart_22s",0)
    }
    if (restart_time > 23)
    {
    set_task(float(restart_time)-23,"restart_23s",0)
    }
    if (restart_time > 24)
    {
    set_task(float(restart_time)-24,"restart_24s",0)
    }
    if (restart_time > 25)
    {
    set_task(float(restart_time)-25,"restart_25s",0)
    }
    if (restart_time > 26)
    {
    set_task(float(restart_time)-26,"restart_26s",0)
    }
    if (restart_time > 27)
    {
    set_task(float(restart_time)-27,"restart_27s",0)
    }
    if (restart_time > 28)
    {
    set_task(float(restart_time)-28,"restart_28s",0)
    }
    if (restart_time > 29)
    {
    set_task(float(restart_time)-29,"restart_29s",0)
    }
    if (restart_time > 30)
    {
    set_task(float(restart_time)-30,"restart_30s",0)
    }
    if (restart_time > 31)
    {
    set_task(float(restart_time)-31,"restart_31s",0)
    }
    if (restart_time > 32)
    {
    set_task(float(restart_time)-32,"restart_32s",0)
    }
    if (restart_time > 33)
    {
    set_task(float(restart_time)-33,"restart_33s",0)
    }
    if (restart_time > 34)
    {
    set_task(float(restart_time)-34,"restart_34s",0)
    }
    if (restart_time > 35)
    {
    set_task(float(restart_time)-35,"restart_35s",0)
    }
    if (restart_time > 36)
    {
    set_task(float(restart_time)-36,"restart_36s",0)
    }
    if (restart_time > 37)
    {
    set_task(float(restart_time)-37,"restart_37s",0)
    }
    if (restart_time > 38)
    {
    set_task(float(restart_time)-38,"restart_38s",0)
    }
    if (restart_time > 39)
    {
    set_task(float(restart_time)-39,"restart_39s",0)
    }
    if (restart_time > 40)
    {
    set_task(float(restart_time)-40,"restart_40s",0)
    }
    if (restart_time > 41)
    {
    set_task(float(restart_time)-41,"restart_41s",0)
    }
    if (restart_time > 42)
    {
    set_task(float(restart_time)-42,"restart_42s",0)
    }
    if (restart_time > 43)
    {
    set_task(float(restart_time)-43,"restart_43s",0)
    }
    if (restart_time > 44)
    {
    set_task(float(restart_time)-44,"restart_44s",0)
    }
    if (restart_time > 45)
    {
    set_task(float(restart_time)-45,"restart_45s",0)
    }
    if (restart_time > 50)
    {
    set_task(float(restart_time)-50,"restart_50s",0)
    }

    }
    }
    public restart_50s()
    {
    SETHUDMSG
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",50)
    }
    public restart_45s()
    {
    SETHUDMSG1
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",45)
    }
    public restart_44s()
    {
    SETHUDMSG2
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",44)
    }
    public restart_43s()
    {
    SETHUDMSG3
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",43)
    }
    public restart_42s()
    {
    SETHUDMSG4
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",42)
    }
    public restart_41s()
    {
    SETHUDMSG5
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",41)
    }
    public restart_40s()
    {
    SETHUDMSG6
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",40)
    }
    public restart_39s()
    {
    SETHUDMSG7
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",39)
    }
    public restart_38s()
    {
    SETHUDMSG8
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",38)
    }
    public restart_37s()
    {
    SETHUDMSG
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",37)
    }
    public restart_36s()
    {
    SETHUDMSG1
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",36)
    }
    public restart_35s()
    {
    SETHUDMSG2
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",35)
    }
    public restart_34s()
    {
    SETHUDMSG3
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",34)
    }
    public restart_33s()
    {
    SETHUDMSG4
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",33)
    }
    public restart_32s()
    {
    SETHUDMSG5
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",32)
    }
    public restart_31s()
    {
    SETHUDMSG6
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",31)
    }
    public restart_30s()
    {
    SETHUDMSG7
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",30)
    }
    public restart_29s()
    {
    SETHUDMSG8
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",29)
    }
    public restart_28s()
    {
    SETHUDMSG
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",28)
    }
    public restart_27s()
    {
    SETHUDMSG1
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",27)
    }
    public restart_26s()
    {
    SETHUDMSG2
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",26)
    }
    public restart_25s()
    {
    SETHUDMSG3
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",25)
    }
    public restart_24s()
    {
    SETHUDMSG4
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",24)
    }
    public restart_23s()
    {
    SETHUDMSG5
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",23)
    }
    public restart_22s()
    {
    SETHUDMSG6
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",22)
    }
    public restart_21s()
    {
    SETHUDMSG7
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",21)
    }
    public restart_20s()
    {
    SETHUDMSG8
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",20)
    }
    public restart_19s()
    {
    SETHUDMSG
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",19)
    }
    public restart_18s()
    {
    SETHUDMSG1
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",18)
    }
    public restart_17s()
    {
    SETHUDMSG2
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",17)
    }
    public restart_16s()
    {
    SETHUDMSG3
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",16)
    }
    public restart_15s()
    {
    SETHUDMSG4
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",15)
    }
    public restart_14s()
    {
    SETHUDMSG5
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",14)
    }
    public restart_13s()
    {
    SETHUDMSG6
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",13)
    }
    public restart_12s()
    {
    SETHUDMSG7
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",12)
    }
    public restart_11s()
    {
    SETHUDMSG8
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",11)
    }
    public restart_10s()
    {
    SETHUDMSG
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",10)
    }
    public restart_9s()
    {
    SETHUDMSG1
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",9)
    }
    public restart_8s()
    {
    SETHUDMSG2
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",8)
    }
    public restart_7s()
    {
    SETHUDMSG3
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",7)
    }
    public restart_6s()
    {
    SETHUDMSG4
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",6)
    }
    public restart_5s()
    {
    SETHUDMSG5
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",5)
    client_cmd(0,"")
    }
    public restart_4s()
    {
    SETHUDMSG6
    show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",4)
    client_cmd(0,"")
    }
    public restart_3s()
    {
    SETHUDMSG9
    SETHUDMSG10
    show_hudmessage(0,"%L", LANG_PLAYER, "THREE",3)
    client_cmd(0,"spk misc/three.wav")
    }
    public restart_2s()
    {
    SETHUDMSG9
    SETHUDMSG10
    show_hudmessage(0,"%L", LANG_PLAYER, "TWO",2)
    client_cmd(0,"spk misc/two.wav")
    }
    public restart_1s()
    {
    SETHUDMSG9
    SETHUDMSG10
    show_hudmessage(0,"%L", LANG_PLAYER, "ONE",1)
    client_cmd(0,"spk misc/one.wav")
    }

    public restart_map()
    {
    if (AutoRR==true)
    {
    set_cvar_float("sv_restart",1.0)
    knifeArena = false
    unpause("ac","antirusher.amxx")
    set_task(2.0,"hudmess_show",0)
    SETHUDMSG9
    SETHUDMSG10
    show_hudmessage(0, "%L", LANG_PLAYER, "AUTOMATIC")
    client_cmd(0,"spk radio/go.wav")
    }
    }

    public hudmess_show()
    {
    set_hudmessage(000, 100, 255, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
    show_hudmessage(0, "%L", LANG_PLAYER, "NICE_GAME")
    }

    public plugin_precache()
    {
    precache_sound( "misc/tygrysek.wav")
    precache_sound( "misc/one.wav")
    precache_sound( "misc/two.wav")
    precache_sound( "misc/three.wav")
    precache_sound( "radio/go.wav")
    return PLUGIN_CONTINUE
    }
     

  2. #2 Odp: restart 
    Spamer
    Dołączył
    Oct 2007
    Wiek
    23
    Posty
    136
    next razem dawaj kod w tagach [php] bo za duzo przewijania, i kod sie nie indentuje.

    Kod php:
    client_cmd(0,"spk misc/tygrysek.wav"
    na

    Kod php:
    client_cmd(0,"mp3 play misc/tygrysek.wav"
     

  3. #3 Odp: restart 
    Spamer Awatar Lelek919
    Dołączył
    May 2008
    Posty
    114
    Ok spoko dzieki :) a tygrysek.wav powinno być chyba tygrysek.mp3 albo mi się tylko wydaje ale dzięki do zamknięcia :)
     

  4. #4 Odp: restart 
    Spamer
    Dołączył
    Oct 2007
    Wiek
    23
    Posty
    136
    no tak, ale rozszerzenie pliku nie musi byc podane przy client_cmd, przy precache musi.
     

Podobne wątki

  1. restart lvl
    By froncek70 in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 07-11-2010, 18:35
  2. Restart 1.56
    By PlaYo_O in forum Darmowe i legalne programy do pobrania
    Odpowiedzi: 0
    Ostatni post / autor: 19-02-2009, 10:42
  3. restart
    By szkutek in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 10
    Ostatni post / autor: 30-07-2008, 09:54
  4. Restart
    By 3Xtrim in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 27-05-2008, 00:01
  5. /restart
    By Ne0 in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 03-05-2008, 13:01
  6. restart
    By Shitman in forum Amx Mod X
    Odpowiedzi: 4
    Ostatni post / autor: 25-03-2008, 22:36
  7. Restart
    By LAN4FAN in forum Konfiguracja serwera HLDS Counter Strike 1.6
    Odpowiedzi: 3
    Ostatni post / autor: 19-02-2008, 16:28
  8. Restart
    By Tomas in forum Amx Mod X
    Odpowiedzi: 4
    Ostatni post / autor: 31-01-2008, 20:39
  9. restart
    By sLwPROSTO in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 3
    Ostatni post / autor: 11-01-2008, 15:54
  10. Restart
    By baju in forum Amx Mod X
    Odpowiedzi: 3
    Ostatni post / autor: 29-12-2007, 18:10

Odwiedzający znaleźli tę stronę szukając:

Nikt jeszcze nie odwiedził tej strony poprzez wyszukiwarki
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
  •