←  Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

Nowy Plugin
Prosty restart

Zablokowany

  • +
  • -
tHo - zdjęcie tHo 06.07.2011

Szukałem, szukałem i szukałem - nie znalazłem.

Potrzebuje prosty plugin, mianowicie - restart na początku mapy, po 45 sekundach, bez zdbędnych pierdół, rozgrywka ma byc normalna, jak pierwsza runda, czyli, normalne pistolety..
Milo by bylo jakby ktos wsadzil tam informacje, ktora sie wyswietli w hudzie (z boku), ze bedzie restart albo jakies odliczanie 3-5 sekundy.. Nic wiecej..

Tyle mam.. hueheh..

#include <amxmodx>
public plugin_init()
{
    register_plugin("Simple restart","1.0","grankee")
    set_task(45.0,"restart")
}
public restart()
{
    server_cmd("sv_restart 3")
    client_print(0,print_center,"Game is live!")
} 


Edit:

Zapomniałem dodac, zeby tam dolozyc, paused M_Antirusher_2.6_alfa.amxx i oczywiscie po odpauzowac :)
Użytkownik tHo edytował ten post 06.07.2011 19:49
Odpowiedz

Gość_deLL_* 06.07.2011

Sprawdź to:

#include <amxmodx>

#define PLUGIN "Round Training"
#define VERSION "1.0"
#define AUTHOR "deLL"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

set_task(1.0, "CmdStartRound")
}

public CmdStartRound() {
set_task(1.0, "PokazCzas", 8188, "", 0, "b")
set_task(45.0, "Restart")

pause("ac", "M_Antirusher_2.6_alfa.amxx")
}

public PokazCzas() {
new red = random_num(0, 255)
new green = random_num(0, 255)
new blue = random_num(0, 255)

new czas = 45

set_hudmessage(red, green, blue, 0.65, 0.75, 1, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* RESTART ZA: *^n%i sekund^n==================", czas)
czas--
}

public Restart() {
remove_task(8188)
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* !! Game is live !! *^n=============")
server_cmd("sv_restart 3")
}
Odpowiedz

  • +
  • -
kapi10072 - zdjęcie kapi10072 06.07.2011

Sprawdź to:

#include <amxmodx>

#define PLUGIN "Round Training"
#define VERSION "1.0"
#define AUTHOR "deLL"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

set_task(1.0, "CmdStartRound")
}

public CmdStartRound() {
set_task(1.0, "PokazCzas", 8188, "", 0, "b")
set_task(45.0, "Restart")

pause("ac", "M_Antirusher_2.6_alfa.amxx")
}

public PokazCzas() {
new red = random_num(0, 255)
new green = random_num(0, 255)
new blue = random_num(0, 255)

new czas = 45

set_hudmessage(red, green, blue, 0.65, 0.75, 1, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* RESTART ZA: *^n%i sekund^n==================", czas)
czas--
}

public Restart() {
remove_task(8188)
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* !! Game is live !! *^n=============")
server_cmd("sv_restart 3")
unpause("ac", "M_Antirusher_2.6_alfa.amxx")
}


Zapomniałeś odpauzować, poprawiłem.
Odpowiedz

Gość_deLL_* 06.07.2011

Oj, gdzie ja mam głowę. Dzięki za poprawkę :P
Odpowiedz
Zablokowany