#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 45
new pokaz_czas
new restart_title[1][] = {
"www.pobyku.com"
}
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(15.0,"muza_on", 0)
set_task(39.0,"wywal_noz", 0)
set_task(40.0,"restart_rundy_1", 0)
set_task(42.0,"restart_rundy_2", 0)
set_task(44.0,"restart_rundy_3", 0)
set_task(47.0,"restart_rundy_play", 0)
set_task(45.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/WAR3/jazda")
}
public wywal_noz(){
unpause("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, -1.0, 0.30, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_hudmessage(0,"~=~=~=~=~=~=~=~=~=~^n*%s *^n* War3FT MOD: %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(0, 0, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"~=~=~=~=~=~=~=~=~=~^n * ! LIVE ! LIVE ! LIVE ! * ^n~=~=~=~=~=~=~=~=~=~")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/WAR3/reset")
server_cmd("sv_restart 1")
}
public restart_rundy_1(){
remove_task(8188)
czas = 45
set_hudmessage(0, 255, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"~{ Przygotowac sie }~")
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/WAR3/trzy")
}
public restart_rundy_2(){
set_hudmessage(255, 0, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"~{ Do }~")
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/WAR3/dwa")
}
public restart_rundy_3(){
new configsDir[64]
get_configsdir(configsDir, 63)
server_cmd("exec %s/gra.cfg", configsDir)
set_hudmessage(255, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4)
show_hudmessage(0,"~{ ! Rzezni ! }~")
client_cmd(0,"stopsound")
client_cmd(0,"mp3 play sound/WAR3/jeden")
}
public plugin_precache()
{
precache_generic("sound/WaR3/jazda.mp3")
precache_generic("sound/WAR3/trzy.mp3")
precache_generic("sound/WAR3/dwa.mp3")
precache_generic("sound/WAR3/jeden.mp3")
precache_generic("sound/WAR3/reset.mp3")
return PLUGIN_CONTINUE
} [ Dodano: 06-09-2008, 06:14 ]
i jak blokuje war3ft.amxx to juz nie wlącza.


Dodatki SourceMod



Temat jest zamknięty








