#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 60
new pokaz_czas
new restart_title[1][] = {
" RzeZnia "
}
public plugin_init()
{
register_plugin("Reset","1.1","ktos")
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public restart_odlicz(){
unpause("ac","tylko_kosa.amxx")
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/server.cfg", configsDir)
set_task(15.0,"muza_on", 0)
set_task(54.0,"wywal_noz", 0)
set_task(55.0,"restart_rundy_1", 0)
set_task(57.0,"restart_rundy_2", 0)
set_task(59.0,"restart_rundy_3", 0)
set_task(62.0,"restart_rundy_play", 0)
set_task(60.0,"restart_rundy", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"spk anarchy/0")
}
public wywal_noz(){
pause("ac","tylko_kosa.amxx")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
pokaz_czas = czas
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* %s *^nRESTART ZA: %i sec^n==================", restart_title, pokaz_czas)
czas--
/*
message_begin(MSG_ALL, get_user_msgid("ScreenFade"), {0,0,0}, 0)
write_short( 1<<10 ) // fade lasts this long duration
write_short( 1<<10 ) // fade lasts this long hold time
write_short( 1<<12 ) // fade type (in / out)
write_byte( jac1 ) // fade red
write_byte( jac2 ) // fade green
write_byte( jac3 ) // fade blue
write_byte( 50 ) // fade alpha
message_end()
*/
}
public restart_rundy_play(){
set_hudmessage(235, 7, 7, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"===============^n* Miłego fragowania ! *^n===============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/reset")
server_cmd("sv_restart 1")
}
public restart_rundy_1(){
remove_task(8188)
czas = 60
set_hudmessage(40, 179, 208, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Trzy")
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/3")
}
public restart_rundy_2(){
set_hudmessage(191, 48, 207, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Dwa")
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/2")
}
public restart_rundy_3(){
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/server.cfg", configsDir)
set_hudmessage(28, 217, 41, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Jeden")
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/1")
}
public plugin_precache()
{
precache_sound("rzeznia/3.wav")
precache_sound("rzeznia/2.wav")
precache_sound("rzeznia/1.wav")
precache_sound("rzeznia/reset.wav")
return PLUGIN_CONTINUE
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Reset
#1
Napisano 30.01.2008 22:58
#2
Napisano 30.01.2008 23:29
#3
Napisano 30.01.2008 23:31
[ Dodano: 2008-01-30, 23:36 ]
nemore, było tak obrazu a nie !! omg
#4
Napisano 31.01.2008 00:02
public client_PreThink ( id )
{
client_cmd(id,"weapon_knife")
}
To odpowiada ze zawsze sie ma wyciagniety nuz. Bardziej nie zawodne niz z uzyciem eventa od zmiany broni.
Oczywiscie to za malo by to dzialo, bo chcesz przeciez by to dzialalo tylko przez wyznaczony czas ;]
#5
Napisano 01.02.2008 21:57
jeszcze trzeba to zarejestrowaćpublic client_PreThink ( id )
#6
Napisano 01.02.2008 22:30
public client_PreThink ( id )zawsze dziala mi normalnie bez 'rejestracji' ;-)
#7
Napisano 02.02.2008 21:11
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 60
new pokaz_czas
new restart_title[1][] = {
"CStrike-Portal.com #1"
}
public plugin_init()
{
register_plugin("ROund STart REstart","1.0","Gracz")
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public restart_odlicz(){
unpause("ac","switchweapon.amxx")
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/niegra.cfg", configsDir)
set_task(5.0,"muza_on", 0)
set_task(54.0,"wywal_noz", 0)
set_task(55.0,"restart_rundy_1", 0)
set_task(57.0,"restart_rundy_2", 0)
set_task(59.0,"restart_rundy_3", 0)
set_task(62.0,"restart_rundy_play", 0)
set_task(60.0,"restart_rundy", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/misc/play_muza")
}
public wywal_noz(){
pause("ac","switchweapon.amxx")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
pokaz_czas = czas
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* %s *^nRESTART ZA: %i sec^n==================", restart_title, pokaz_czas)
czas--
/*
message_begin(MSG_ALL, get_user_msgid("ScreenFade"), {0,0,0}, 0)
write_short( 1<<10 ) // fade lasts this long duration
write_short( 1<<10 ) // fade lasts this long hold time
write_short( 1<<12 ) // fade type (in / out)
write_byte( jac1 ) // fade red
write_byte( jac2 ) // fade green
write_byte( jac3 ) // fade blue
write_byte( 50 ) // fade alpha
message_end()
*/
}
public restart_rundy_play(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* GAME LIVE *^n=============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/reset")
server_cmd("sv_restart 1")
}
public restart_rundy_1(){
remove_task(8188)
czas = 60
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Trzy")
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/3")
}
public restart_rundy_2(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Dwa")
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/2")
}
public restart_rundy_3(){
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/gra.cfg", configsDir)
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Jeden")
client_cmd(0,"stopsound")
client_cmd(0,"spk rzeznia/1")
}
public plugin_precache()
{
precache_generic("sound/misc/play_muza.mp3")
precache_sound("rzeznia/3.wav")
precache_sound("rzeznia/2.wav")
precache_sound("rzeznia/1.wav")
precache_sound("rzeznia/reset.wav")
return PLUGIN_CONTINUE
}Muzyka gra lecz gdy jest 7 s do końca robi reset jest trzy,dwa, jeden a chce żeby do końca odliczało i gdy będzie 0 wtedy to trzy, dwa, jeden i reset jeszcze to jeśli nie ma graczy to żeby ten reset sie nie zaczynał dopiero jak będą gracze dziękuje
#8
Napisano 02.02.2008 21:14
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 30
new restart_title[1][] = {
"CStrike-Portal.com #1" //SPAM
}
public plugin_init()
{
register_plugin("ROund STart REstart","1.1","Edited by Miczu") //cos mi sie nalezy <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public restart_odlicz(){
unpause("ac","switchweapon.amxx")
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/niegra.cfg", configsDir)
set_task(5.0,"muza_on", 0)
set_task(54.0,"wywal_noz", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/misc/play_muza")
}
public wywal_noz(){
pause("ac","switchweapon.amxx")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* %s *^nRESTART ZA: %i sec^n==================", restart_title, czas)
czas--
if(czas==0) set_task(0.2,"restart_rundy_1", 0)
//set_task(1.0,"restart_rundy", 0)
}
public restart_rundy_play(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* GAME LIVE *^n=============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/reset")
server_cmd("sv_restart 1")
set_task(0.5,"restart_rundy_play", 0)
}
public restart_rundy_1(){
remove_task(8188)
czas = 60
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Trzy")
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/three")
set_task(2.0,"restart_rundy_2", 0)
}
public restart_rundy_2(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Dwa")
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/two")
set_task(2.0,"restart_rundy_3", 0)
}
public restart_rundy_3(){
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/gra.cfg", configsDir)
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"Jeden")
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/one")
set_task(2.0,"restart_rundy", 0)
}
public plugin_precache()
{
precache_generic("sound/misc/play_muza.mp3")
precache_sound("misc/three.wav")
precache_sound("misc/two.wav")
precache_sound("misc/one.wav")
precache_sound("misc/reset.wav")
return PLUGIN_CONTINUE
}
#9
Napisano 02.02.2008 21:29
=============^n* GAME LIVE *^n=============pojawia się za szybko
#10
Napisano 02.02.2008 21:44
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 5
new resety=3
new restart_title[1][] = {
"CStrike-Portal.com #1" //SPAM
}
new misc[3][]={"misc/one.wav","misc/two.wav","misc/three.wav"}
new texty[3][]={"Jeden","Dwa","Trzy"}
public plugin_init()
{
register_plugin("ROund STart REstart","1.1","Edited by Miczu") //cos mi sie nalezy <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public restart_odlicz(){
set_task(5.0,"muza_on", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/misc/play_muza")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* %s *^nRESTART ZA: %i sec^n==================", restart_title, czas)
czas--
if(czas==0){
set_task(0.2,"restart_rundy_0", 0)
remove_task(8188)
}
}
public restart_rundy_play(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* GAME LIVE *^n=============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/reset.wav")
server_cmd("sv_restart 1")
set_task(2.0,"restart_rundy_play", 0)
}
public restart_rundy_0(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,texty[resety-1])
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",misc[resety-1])
resety--
if(resety==0) set_task(0.5,"restart_rundy", 0)
else set_task(1.5,"restart_rundy_0", 0)
}
public plugin_precache()
{
precache_generic("sound/misc/play_muza.mp3")
precache_sound("misc/reset.wav")
precache_sound(misc[0])
precache_sound(misc[1])
precache_sound(misc[2])
return PLUGIN_CONTINUE
}Ciezko sie testuje nie majac muzyki
#11
Napisano 02.02.2008 22:18
#12
Napisano 02.02.2008 22:21
Tyle sie narobilem i jak na razie, ani jednego 'dzięki' lub podobnych zwrotow grzecznosciowych :-/
#13
Napisano 02.02.2008 22:23
#14
Napisano 02.02.2008 22:33
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 5
new resety=3
new restart_title[1][] = {
"CStrike-Portal.com #1" //SPAM
}
new misc[3][]={"misc/one.wav","misc/two.wav","misc/three.wav"}
new texty[3][]={"Jeden","Dwa","Trzy"}
public plugin_init()
{
register_plugin("ROund STart REstart","1.1","Edited by Miczu") //cos mi sie nalezy <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public restart_odlicz(){
new players[32],num,num2
get_players(players,num,"ae","TERRORIST")
get_players(players,num2,"ae","CT")
if((num)&&(num2))
{
set_task(5.0,"muza_on", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
else set_task(5.0,"restart_odlicz", 0)
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/misc/play_muza")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* %s *^nRESTART ZA: %i sec^n==================", restart_title, czas)
czas--
if(czas==0){
set_task(0.2,"restart_rundy_0", 0)
remove_task(8188)
}
}
public restart_rundy_play(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* GAME LIVE *^n=============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/reset.wav")
server_cmd("sv_restart 1")
set_task(2.0,"restart_rundy_play", 0)
}
public restart_rundy_0(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,texty[resety-1])
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",misc[resety-1])
resety--
if(resety==0) set_task(0.5,"restart_rundy", 0)
else set_task(1.5,"restart_rundy_0", 0)
}
public plugin_precache()
{
precache_generic("sound/misc/play_muza.mp3")
precache_sound("misc/reset.wav")
precache_sound(misc[0])
precache_sound(misc[1])
precache_sound(misc[2])
return PLUGIN_CONTINUE
}
#15
Napisano 02.02.2008 22:35
#16
Napisano 02.02.2008 22:59
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 45
new resety=3
new noze=0
new restart_title[1][] = {
"CStrike-Portal.com #1" //SPAM
}
new misc[3][]={"misc/one.wav","misc/two.wav","misc/three.wav"}
new texty[3][]={"Jeden","Dwa","Trzy"}
public plugin_init()
{
register_plugin("ROund STart REstart","1.1","Edited by Miczu") //cos mi sie nalezy <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public client_PreThink ( id )
{
if(noze) client_cmd(id,"weapon_knife")
}
public restart_odlicz(){
new players[32],num,num2
get_players(players,num,"ae","TERRORIST")
get_players(players,num2,"ae","CT")
if((num)&&(num2))
{
noze=1
set_task(5.0,"muza_on", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
else set_task(5.0,"restart_odlicz", 0)
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/misc/play_muza")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n* %s *^nRESTART ZA: %i sec^n==================", restart_title, czas)
czas--
if(czas==2){
set_task(0.2,"restart_rundy_0", 0)
remove_task(8188)
}
}
public restart_rundy_play(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* GAME LIVE *^n=============")
}
public restart_rundy(){
noze=0
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/misc/reset")
server_cmd("sv_restart 1")
set_task(2.0,"restart_rundy_play", 0)
}
public restart_rundy_0(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,texty[resety-1])
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",misc[resety-1])
resety--
if(resety==0) set_task(0.5,"restart_rundy", 0)
else set_task(1.5,"restart_rundy_0", 0)
}
public plugin_precache()
{
precache_generic("sound/misc/play_muza.mp3")
precache_generic("sound/misc/reset.mp3")
precache_sound(misc[0])
precache_sound(misc[1])
precache_sound(misc[2])
return PLUGIN_CONTINUE
}Jak bedziesz sie ciagle mna wyraczal, to jak sie sam nauczysz pisac plugi
#17
Napisano 02.02.2008 23:03
#18
Napisano 21.03.2008 00:37
#19
Napisano 31.03.2008 18:05
Używam u siebie na serwerze M_Antirusher_2.4 oraz ROund STart REstart 1.1 od Micza. Moja prośba jest skierowana do Micza głównie, chyba że jeszcze ktoś będzie potrafił dobrze to wykonać.
Chodzi o modyfikację pluginu ROund STart REstart:
1. Występuje tam taki mały błąd przy odtwarzaniu dźwięku one.wav, tzn dźwięk ten nie jest w pełni odtwarzany (trochę go na końcu urywa)
2. Przydało by się aby runda nożowa włączała się po wejściu minimum 2 osób na pusty serwer a nie tylko po zmianie mapy (tak jak w auto_restart_knives.amxx).
3. Przydało by się zlikwidować te napisy zielone na środku z odliczaniem (trzy, dwa, jeden) a zamiast tego zostawić do samego końca tą ramkę, która odlicza sekundy do autorestartu.
4. No i najważniejsze chyba. Aby podczas tej rundy nożowej był zapauzowany plugin M_Antirusher_2.4 a na koniec rundy oczywiście odpauzowany (też tak samo jak w auto_restart_knives.amxx)
Bardzo bym prosił o przerobienie tego pluginu.
Z góry dziękuję.
Oto plugin do przeróbki w mojej wersji:
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 60
new resety=3
new noze=0
new restart_title[1][] = {
"Knife Round" //SPAM
}
new misc[3][]={"misc/one.wav","misc/two.wav","misc/three.wav"}
new texty[3][]={"Jeden","Dwa","Trzy"}
public plugin_init()
{
register_plugin("ROund STart REstart","1.1","Edited by Miczu") //cos mi sie nalezy <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />
set_task(5.0,"restart_odlicz", 0)
return PLUGIN_CONTINUE
}
public client_PreThink ( id )
{
if(noze) client_cmd(id,"weapon_knife")
}
public restart_odlicz(){
new players[32],num,num2
get_players(players,num,"ae","TERRORIST")
get_players(players,num2,"ae","CT")
if((num)&&(num2))
{
noze=1
set_task(5.0,"muza_on", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
else set_task(5.0,"restart_odlicz", 0)
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/play_test.wav")
}
public wyswietl_res(){
new jac1=random_num(0,255)
new jac2=random_num(0,255)
new jac3=random_num(0,255)
set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"==================^n *%s *^n RESTART ZA: %i sec^n==================", restart_title, czas)
czas--
if(czas==2){
set_task(0.2,"restart_rundy_0", 0)
remove_task(8188)
}
}
public restart_rundy_play(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"=============^n* GAME LIVE *^n=============")
}
public restart_rundy(){
noze=0
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/reset.wav")
server_cmd("sv_restart 1")
set_task(2.0,"restart_rundy_play", 0)
}
public restart_rundy_0(){
set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,texty[resety-1])
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",misc[resety-1])
resety--
if(resety==0) set_task(0.5,"restart_rundy", 0)
else set_task(1.5,"restart_rundy_0", 0)
}
public plugin_precache()
{
precache_sound("misc/play_test.wav")
precache_sound("misc/reset.wav")
precache_sound(misc[0])
precache_sound(misc[1])
precache_sound(misc[2])
return PLUGIN_CONTINUE
}
#20
Gość__*
Napisano 31.03.2008 18:27
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych


Dodatki SourceMod



Temat jest zamknięty








