tutaj daje orginał sma
Spoiler
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 54
new pokaz_czas
new restart_title[1][] = {
""
}
public plugin_init()
{
register_plugin("ROund STart REstart","1.0","deLL")
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(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 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* !! Baw sie dobrze !! *^n=============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/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 misc/three")
}
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")
}
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")
}
public plugin_precache()
{
precache_sound("misc/play_muza.wav")
precache_sound("misc/three.wav")
precache_sound("misc/two.wav")
precache_sound("misc/one.wav")
precache_sound("misc/reset.wav")
return PLUGIN_CONTINUE
}
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 54
new pokaz_czas
new restart_title[1][] = {
""
}
public plugin_init()
{
register_plugin("ROund STart REstart","1.0","deLL")
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(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 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* !! Baw sie dobrze !! *^n=============")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/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 misc/three")
}
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")
}
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")
}
public plugin_precache()
{
precache_sound("misc/play_muza.wav")
precache_sound("misc/three.wav")
precache_sound("misc/two.wav")
precache_sound("misc/one.wav")
precache_sound("misc/reset.wav")
return PLUGIN_CONTINUE
}
bo chce go przerobić żeby blokował mi pluginy na 1 rundę ta rozgrzewkową wa a potem odblokowywał
np roundchat co wyświetla ilość rund i ilość graczy
potem chce żeby blokowało mi alt_end_round_sounds żeby jak w tych 55 sekundach gracze sie zabija to zeby nie leciała muza na koniec rundy bo mam muzę tym pluginie ustawioną co leci 50 sekund i nachodza na siebie ta z pluginu na rozgrzewke i ta na koniec rundy
i niby mi się udało jak wejdę i jestem sam na serwerze to niby działa ale jak ktoś się dolączy choćby boty
to już wyświetla się ten napis w rozgrzewce i nie blokuje tego pluginu i innych
a to co zrobiłem wygląda tak
Spoiler
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 55
new pokaz_czas
new restart_title[1][] = {"Crysis Nanosuit MOD"}
public plugin_init()
{
register_plugin("ROund STart REstart","1.0","deLL")
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(61.0,"odblock", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/play_muza")
}
public wywal_noz(){
pause("ac","switchweapon.amxx")
pause("ac","roundchat.amxx")
pause("ac","headshot_deluxe.amxx")
pause("ac","alt_end_round_sounds.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 ^nZaczynamy 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* !! Zycze milej gry !! *^n=============")
}
public odblock(){
unpause("ac","roundchat.amxx")
unpause("ac","headshot_deluxe.amxx")
unpause("ac","alt_end_round_sounds.amxx")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/reset")
server_cmd("sv_restart 3")
}
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")
}
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")
}
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")
}
public plugin_precache()
{
precache_sound("misc/play_muza.wav")
precache_sound("misc/three.wav")
precache_sound("misc/two.wav")
precache_sound("misc/one.wav")
precache_sound("misc/reset.wav")
return PLUGIN_CONTINUE
}
#include <amxmodx> // AMX Mod X
#include <amxmisc>
new czas = 55
new pokaz_czas
new restart_title[1][] = {"Crysis Nanosuit MOD"}
public plugin_init()
{
register_plugin("ROund STart REstart","1.0","deLL")
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(61.0,"odblock", 0)
set_task(1.0,"wyswietl_res",8188,"",0,"b")
}
public muza_on(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/play_muza")
}
public wywal_noz(){
pause("ac","switchweapon.amxx")
pause("ac","roundchat.amxx")
pause("ac","headshot_deluxe.amxx")
pause("ac","alt_end_round_sounds.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 ^nZaczynamy 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* !! Zycze milej gry !! *^n=============")
}
public odblock(){
unpause("ac","roundchat.amxx")
unpause("ac","headshot_deluxe.amxx")
unpause("ac","alt_end_round_sounds.amxx")
}
public restart_rundy(){
client_cmd(0,"stopsound")
client_cmd(0,"spk misc/reset")
server_cmd("sv_restart 3")
}
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")
}
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")
}
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")
}
public plugin_precache()
{
precache_sound("misc/play_muza.wav")
precache_sound("misc/three.wav")
precache_sound("misc/two.wav")
precache_sound("misc/one.wav")
precache_sound("misc/reset.wav")
return PLUGIN_CONTINUE
}
z