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
Modyfikacja

Przeróbka RR

Modyfikacja

  • Zamknięty Temat jest zamknięty
4 odpowiedzi w tym temacie

#1 lama

    Początkujący

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:12
  • Lokalizacja:Poland
Offline

Napisano 22.02.2009 11:02

Witam

Plugin znalazlem gdzies na forum, przerobilem go jak tylko umialem do swoich potrzeb, nie jestem jednak najlepszy w smal`u więc proszę o pomoc.
Aktualnie podczas RR gracze nie odradzają się po śmierci, chciałbym to zmienić, czy mógłby ktoś poprawić ten plug ?

Oto jego sma

#include <amxmodx>             // AMX Mod X
#include <amxmisc>

new czas = 98
new pokaz_czas
new restart_title[1][] = {
   "TERAZ ROZGRZEWKA"
}

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(0.101,"muza_on", 0)
   set_task(101.0,"wywal_noz", 0)
   set_task(96.0,"restart_rundy_1", 0)
   set_task(98.0,"restart_rundy_2", 0)
   set_task(100.0,"restart_rundy_3", 0)
   set_task(101.0,"restart_rundy_play", 0)

   set_task(101.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/Djvirusmix")
}

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 *^nBANIA 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* Grasz na LCS *^n=============")
}


public restart_rundy(){
   client_cmd(0,"stopsound")
   client_cmd(0,"spk misc/bania")
   server_cmd("sv_restart 1")

}

public restart_rundy_1(){
   remove_task(8188)
   czas = 98
   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_generic("sound/misc/Djvirusmix.mp3")
    precache_sound("misc/three.wav")
    precache_sound("misc/two.wav")
    precache_sound("misc/one.wav")
    precache_sound("misc/bania.wav")

    return PLUGIN_CONTINUE
}

POZDRAWIAM ALL USERÓW
AMXX.PL

Załączone pliki


  • +
  • -
  • 0

#2 grankee

    Godlike

  • Support Team

Reputacja: 517
Wszechwiedzący

  • Postów:1 500
  • Lokalizacja:Radom
Offline

Napisano 22.02.2009 13:28

Poszukaj pluginu warmuppro, tam jest odradzanie i tam będzie ew. coś łatwiej przerabiać.

PS. pluginy pisze się w PAWNie a nie smal'u

[ Komentarz dodany przez: darkman: 22-02-2009, 13:46 ]
small to stara nazwa pawna
//darkman

  • +
  • -
  • 0

#3 Gość__*

  • Gość

Reputacja: 0

Offline

Napisano 22.02.2009 13:51

Masz: http://amxx.pl/viewtopic.php?t=9579

#4 grankee

    Godlike

  • Support Team

Reputacja: 517
Wszechwiedzący

  • Postów:1 500
  • Lokalizacja:Radom
Offline

Napisano 22.02.2009 18:21

Ok, ale niech kolega popatrzy co tam zmieniać.
  • +
  • -
  • 0

#5 lama

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 1
Nowy

  • Postów:12
  • Lokalizacja:Poland
Offline

Napisano 22.02.2009 23:45

dzięki kur3k za szybka odpowiedz, ale szukam chyba czegoś innego :|


PS : aha thnx grankee za update nazwy :]
POzdro

[ Dodano: 23-02-2009, 19:14 ]
Witam ponownie dziś mam kolejny rr i kolejną prośbę o przeróbkę

/* 
* AMX Mod X script. 
* Auto restart Knives by VikuS
* Skrypt powstał na bazie skryptu Auto-Restart by -ThX-
* 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, -1.0, 0.25, 0, 6.0, 1.0, 0.1, 0.2, 4);
#define LEVEL_LEVEL	ADMIN_CFG

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

public plugin_init()
{
	register_plugin("Auto-Restart-Knives","0.2","VikuS")
	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","45")
	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 > 10)
		{
		set_task(float(restart_time)-10,"restart_10s",0)
		}
		if (restart_time > 15)
		{
		set_task(float(restart_time)-15,"restart_15s",0)
		}
		if (restart_time > 20)
		{
		set_task(float(restart_time)-20,"restart_20s",0)
		}
		if (restart_time > 30)
		{
		set_task(float(restart_time)-30,"restart_30s",0)
		}
		if (restart_time > 40)
		{
		set_task(float(restart_time)-40,"restart_40s",0)
		}
		if (restart_time > 50)
		{
		set_task(float(restart_time)-50,"restart_50s",0)
		}
		if (restart_time > 60)
		{
		set_task(float(restart_time)-60,"restart_60s",0)
		}
	}
}

public restart_60s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_MIN",1)
}
public restart_50s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",50)
}
public restart_40s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",40)
}
public restart_30s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",30)
}
public restart_20s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",20)
}
public restart_15s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",15)
}
public restart_10s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",10)
}
public restart_5s() 
{ 
	SETHUDMSG 
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",5)
	client_cmd(0,"spk vox/five")
} 
public restart_4s() 
{ 
	SETHUDMSG
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",4)
	client_cmd(0,"spk vox/four")
} 
public restart_3s()
{
	SETHUDMSG
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",3)
	client_cmd(0,"spk vox/three")
}
public restart_2s()
{
	SETHUDMSG
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",2)
	client_cmd(0,"spk vox/two")
}
public restart_1s()
{
	SETHUDMSG
	show_hudmessage(0,"%L", LANG_PLAYER, "AUTO_RR_FOR_SEC",1)
	client_cmd(0,"spk vox/one")
}

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)
		SETHUDMSG
		show_hudmessage(0, "%L", LANG_PLAYER, "AUTOMATIC") 
		client_cmd(0,"spk misc/bania.wav")
	}
}

public hudmess_show()
{
		set_hudmessage(0, 100, 200, 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/bania.wav")
	return PLUGIN_CONTINUE
}

potrzebuję w tym plugu zapauzować dodatkowo na czas rr plugin
alt_end_roundsound.amxx

Dzięki z góry!!!!

POZDRO ALL
  • +
  • -
  • 0





Również z jednym lub większą ilością słów kluczowych: Modyfikacja

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

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