Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie
* * - - - 1 głosy

Auto - Restart By PEREF


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
81 odpowiedzi w tym temacie

#21 eXine

    Zaawansowany

  • Użytkownik

Reputacja: 4
Nowy

  • Postów:127
  • Lokalizacja:Wrocław
Offline

Napisano 17.09.2008 14:46

graby26, a moze:
pause("ac","roundsound.amxx","roundsound.amxx")

  • +
  • -
  • 0

#22 graby26

    Początkujący

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:12
  • GG:
Offline

Napisano 19.09.2008 12:46

Nic nie pomogło. :/

Chodzi mi o to że w rundzie nożowej mam nutke w tle. Gdy wygra któraś druzyna wlacza sie roundosund i jak sie skonczy to nic nie gra a runda nozowa leci dalej. Dlatego chce zablokowac rounsound.amxx żeby w czasie rundy nozowej nie bylo słychac rounsoundów. Korzystam z tego plugina który jest w temacie.

Z góry THX :D
  • +
  • -
  • 0

#23 dad

    Pomocny

  • Użytkownik

Reputacja: 2
Nowy

  • Postów:56
Offline

Napisano 21.09.2008 08:28

Jak dodałem do
public restart_time()
{
if (AutoRR==true)
{
new restart_time=get_cvar_num("auto_rr_time")

knifeArena = true
pause("ac","end_round_cos tam cos tam.amxx")

to mi potem po restarcie nie działaja mi roundsony ;]
  • +
  • -
  • 0

#24 graby26

    Początkujący

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:12
  • GG:
Offline

Napisano 21.09.2008 10:23

Dopisalem nazwe pluginy do pause i unpause i dalej nic ;> . Chcialem wziąć pod uwage ze chce zablokowac dwa pluginy.

M_Antirusher_2.4.amxx
Roundsound.amxx

/* 
* AMX Mod X script. 
* Auto restart Knives by PEREF
* 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 45
* 
*/    

#include <amxmodx> 
#include <amxmisc>

#define SETHUDMSG       set_hudmessage(000, 100, 255, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Niebieski
#define SETHUDMSG1      set_hudmessage(000, 205, 000, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Zielony
#define SETHUDMSG2      set_hudmessage(255, 255, 000, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Żołty
#define SETHUDMSG3      set_hudmessage(000, 255, 255, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Aqa
#define SETHUDMSG4      set_hudmessage(255, 048, 048, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Czerwony
#define SETHUDMSG5      set_hudmessage(255, 127, 000, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Pomarańczowy
#define SETHUDMSG6      set_hudmessage(238, 018, 137, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Rożowy
#define SETHUDMSG7      set_hudmessage(139, 069, 019, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Brązowy
#define SETHUDMSG8      set_hudmessage(155, 048, 255, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Fioletowy
#define SETHUDMSG9      set_hudmessage(250, 100, 100, -1.0, 0.25,  1, 0.02, 1.0, 0.01, 0.1, 1);  // (THREE TWO ONE)
#define SETHUDMSG10     set_hudmessage(250, 075, 075, -1.0, 0.25,  1, 0.02, 1.0, 0.01, 0.1, 1);  // (THREE TWO ONE)
#define LEVEL_LEVEL	ADMIN_CFG

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

public plugin_init()
{
	register_plugin("Auto-Restart-Knives","0.2","PEREF")
	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","50")
	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","M_Antirusher.amxx")

		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)
	client_cmd(0,"spk misc/muzyczka.wav")
}
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","M_Antirusher.amxx")
		set_task(2.0,"hudmess_show",0)
		SETHUDMSG9
                SETHUDMSG10
		show_hudmessage(0, "%L", LANG_PLAYER, "AUTOMATIC")
		client_cmd(0,"spk misc/restart.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/one.wav")
	precache_sound( "misc/two.wav")
	precache_sound( "misc/three.wav")
	precache_sound( "misc/restart.wav")
	precache_sound( "misc/muzyczka.wav")
	return PLUGIN_CONTINUE
}

To jest oryginalny .sma

proszę o pomoc :
  • +
  • -
  • 0

#25 artek615

    Nowy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:2
Offline

Napisano 26.10.2008 12:26

jak wstawic wlasna muzyke bo jak zmieniam sma to nic nie daje...

/* 
* AMX Mod X script. 
* Auto restart Knives by PEREF
* 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 45
* 
*/    

#include <amxmodx> 
#include <amxmisc>

#define SETHUDMSG       set_hudmessage(000, 100, 255, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Niebieski
#define SETHUDMSG1      set_hudmessage(000, 205, 000, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Zielony
#define SETHUDMSG2      set_hudmessage(255, 255, 000, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Żołty
#define SETHUDMSG3      set_hudmessage(000, 255, 255, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Aqa
#define SETHUDMSG4      set_hudmessage(255, 048, 048, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Czerwony
#define SETHUDMSG5      set_hudmessage(255, 127, 000, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Pomarańczowy
#define SETHUDMSG6      set_hudmessage(238, 018, 137, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Rożowy
#define SETHUDMSG7      set_hudmessage(139, 069, 019, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Brązowy
#define SETHUDMSG8      set_hudmessage(155, 048, 255, 0.75, 0.70,  2, 0.02, 1.0, 0.01, 0.1, 1);  // Fioletowy
#define SETHUDMSG9      set_hudmessage(250, 100, 100, -1.0, 0.25,  1, 0.02, 1.0, 0.01, 0.1, 1);  // (THREE TWO ONE)
#define SETHUDMSG10     set_hudmessage(250, 075, 075, -1.0, 0.25,  1, 0.02, 1.0, 0.01, 0.1, 1);  // (THREE TWO ONE)
#define LEVEL_LEVEL	ADMIN_CFG

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

public plugin_init()
{
	register_plugin("Auto-Restart-Knives","0.2","PEREF")
	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","50")
	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","M_Antirusher_2.4.amxx")

		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)
	client_cmd(0,"spk misc/play_ejo.wav")
}
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","M_Antirusher_2.4.amxx")
		set_task(2.0,"hudmess_show",0)
		SETHUDMSG9
                SETHUDMSG10
		show_hudmessage(0, "%L", LANG_PLAYER, "AUTOMATIC")
		client_cmd(0,"spk misc/reset.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/one.wav")
	precache_sound( "misc/two.wav")
	precache_sound( "misc/three.wav")
	precache_sound( "misc/reset.wav")
	precache_sound( "misc/play_ejo.wav")
	return PLUGIN_CONTINUE
}

  • +
  • -
  • 0

#26 mgr inż. Pavulon

    C35H60Br2N2O4

  • Przyjaciel

Reputacja: 1 742
Godlike

  • Postów:6 881
  • Steam:steam
  • Imię:Konrad
  • Lokalizacja:Koniecpol
Offline

Napisano 26.10.2008 12:59

zmieniam sma to nic nie daje...

a kompilujesz(http://amxx.pl/Kompilator.php) to .sma i wrzucasz nowe .amxx ?
  • +
  • -
  • 0

#27 artek615

    Nowy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:2
Offline

Napisano 26.10.2008 13:21

ok dzięki za pomoc
  • +
  • -
  • 0

#28 Nikke94

    Życzliwy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:32
Offline

Napisano 03.01.2009 16:37

Plugin dziala ino jak zmienic nazwe bo pisze mi Nazwa Serwer restart za ... .Chodzi mi o to zeby zamiast Nazwy serwera bylo np amxx.pl xD
  • +
  • -
  • 0

#29 MafiaDL

    Naj-Najstarszy Moderator

  • Przyjaciel

Reputacja: 561
Wszechwiedzący

  • Postów:3 492
  • GG:
  • Imię:Łukasz
  • Lokalizacja:Warsaw
Offline

Napisano 03.01.2009 16:46

Chodzi mi o to zeby zamiast Nazwy serwera bylo np amxx.pl


auto_restart_knives.txt ;]
  • +
  • -
  • 0

#30 lays1992

    Pomocny

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:73
  • GG:
  • Steam:steam
  • Lokalizacja:Podkarpacie
Offline

Napisano 03.01.2009 21:56

mógłby ktoś mi napisać kod tego pluginu, tylko zeby muyka byla w mp3, nie w wav, chodzi mi tylko o muzyczka.mp3 i restart.mp3
  • +
  • -
  • 0

#31 graczu

    Pomocny

  • Użytkownik

Reputacja: 12
Początkujący

  • Postów:42
  • GG:
  • Lokalizacja:Wrocław
Offline

Napisano 07.01.2009 13:30

Nie ładnie to tak podrabiać kogoś prace :P

A jak już to zrobić to tyci lepiej :P

Skorzystać z opcji takich jak: while albo for switch task etc... ale nie jakieś słupki xD, z tego co pamiętam to w takim stylu napisałem ten plugin, tyle ze wszystko straciłem i nie dam całości, bo dysk poszedł się jejeje... na polankę...




new czasw = 55
new Float:czasr = 56.00
new crestart = 3

function start_restart_(){
	set_task(1.0, "napisw_", 8188, "", 0, "a", czasw)
	set_task(czasr, "start321_", 8181)
}

function napisw_(){

	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,"===========================^nRestart Rundy za: %i^n===========================", czasw) 
	czasw--
}

function start321_(){
	switch (crestart) {
		case 1: show_hudmessage(0,"One") set_task(2.0, "say_play") server_cmd("sv_restart 1")
		case 2: show_hudmessage(0,"Two") 
		case 3: show_hudmessage(0,"Three") set_task(1.0, "start321_", 8819, "", 0, "a", 2)
	}
	crestart--
	
}

function say_play(){
	show_hudmessage(0,"* GRAMY *")
}


  • +
  • -
  • 0

#32 KonriX'

    Nowy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:7
  • GG:
  • Lokalizacja: / home
Offline

Napisano 27.01.2009 20:12

Mam problem z tym pluginem. Wszystko działa oprócz muzyczki która powinna lecieć w trakcie nożówki. Inne dźwięki z pluginu (3,2,1, i restart) działają, tylko ta jedna nie. Ściąga się ona przy wejściu na serwer, bo pytałem się ludzi jednak nie słuchać jej w czasie gry. W logach nic ciekawego nie znalazłem...

Co może być powodem?
  • +
  • -
  • 0

#33 Feku

    Życzliwy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:31
  • GG:
  • Lokalizacja:Glasgow
Offline

Napisano 28.01.2009 17:01

Chce ustawic nozowke na 30 sec i w tym czasie zeby grala muza.Da ktos gotowca i instrukcje delikata.
proszę O:)
  • +
  • -
  • 0

#34 rash

    Zaawansowany

  • Użytkownik

Reputacja: 18
Początkujący

  • Postów:119
  • GG:
  • Steam:steam
  • Imię:Piotr
  • Lokalizacja:Grudziądz
Offline

Napisano 28.01.2009 21:14

Konri'X jeżeli dodajesz swój własny plik dźwiękowy to pamiętaj, że musi on być w formacie jaki wymaga plugin i musi mieć odpowiednią wartość hz.
  • +
  • -
  • 0

#35 Feku

    Życzliwy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:31
  • GG:
  • Lokalizacja:Glasgow
Offline

Napisano 29.01.2009 13:00

Chce ustawic nozowke na 30 sec i w tym czasie zeby grala muza.Da ktos gotowca i instrukcje delikata.
proszę O:)

Juz zrobione.Wszystko dziala elegancko :D
  • +
  • -
  • 0

#36 KonriX'

    Nowy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:7
  • GG:
  • Lokalizacja: / home
Offline

Napisano 29.01.2009 19:25

Co do mojego postu to chyba wiem co jest grane :) Miałem czas nozówki ustawiony na 45 sec - muzyczki nie było. Ustawiłem na 50 sec - muzyczka jest. Może w pluginie gdzies jest wpis, w której sekundzie zaczyna się piosenka. Nie wiem, nie przeglądałem go (btw. i tak sie na tym za bardzo nie znam :P)
  • +
  • -
  • 0

#37 Reticxe

    Życzliwy

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:39
Offline

Napisano 31.01.2009 11:23

Co powinienem dopisać do kodu, aby zapauzować alt_end_round_sounds.amxx podczas nożówki?
Zrobiłem tak:
knifeArena = true
		pause("ac","M_Antirusher_2.4.amxx")
		pause("ac","alt_end_round_sounds.amxx.amxx")
i tak:
set_cvar_float("sv_restart",1.0)
		knifeArena = false
		unpause("ac","M_Antirusher_2.4.amxx")
		unpause("ac","alt_end_round_sounds.amxx.amxx")
w odpowiednich miejscach, ale to nie działa, a na dodatek nożówka restartuje mapę w środku jej trwania.
  • +
  • -
  • 0

#38 emblaze

    Koniec z cs/amxx

  • Użytkownik

Reputacja: 167
Profesjonalista

  • Postów:973
  • Lokalizacja:Mój steam: emblaze_95
Offline

Napisano 31.01.2009 11:36

knifeArena = true
pause("ac","M_Antirusher_2.4.amxx")
pause("ac","alt_end_round_sounds.amxx)


set_cvar_float("sv_restart",1.0)
knifeArena = false
unpause("ac","M_Antirusher_2.4.amxx")
unpause("ac","alt_end_round_sounds.amxx)


  • +
  • -
  • 0

#39 Reticxe

    Życzliwy

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:39
Offline

Napisano 31.01.2009 13:31

Faktycznie, błąd, ale i tak mam problemy, rundy się restartują, czasami mimo śmierci wszystkich zawodników z jednej drużyny runda nie chce się zakończyć itd.
  • +
  • -
  • 0

#40 Stonek

    Nowy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:1
Offline

Napisano 25.02.2009 09:34

zrobiłem wszytko tak jak w instrukcji, bez zadnych konfiguracji, ale jak było 1vs1 i ktos przyszedł to od nowa była runda nozowa...
Co zrobic?! bo z takim fantem nie da sie normlanie grac...
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych