←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

Licznik C4

Zablokowany

hary - zdjęcie hary 11.08.2011

Witam szukam takiego licznika http://img9.imagesha...nferno0013w.jpg

+
Odpowiedz

hary - zdjęcie hary 11.08.2011

Ale żaden z nich nie wyświetla informacji tak jak na screenie.
Odpowiedz

  • +
  • -
Droso - zdjęcie Droso 11.08.2011

/* Plugin generated by AMXX-Studio */



#include <amxmodx>

#include <amxmisc>



#define PLUGIN "Bomb CountDown"

#define VERSION "1.0"

#define AUTHOR "peku33 with sound HubertTM without sound"  // edited by HubertTM

#define TID 4738



new pc;

new t;

public plugin_init()

{

	register_plugin(PLUGIN, VERSION, AUTHOR);

	pc = get_cvar_pointer("mp_c4timer");

	register_logevent("planted", 3, "2=Planted_The_Bomb");

	register_logevent("Koniec_Rundy", 2, "1=Round_End") 

}

public planted()

{

	t = get_pcvar_num(pc);

	set_task(1.0, "bomb_tick", TID, "", 0, "b");

}

public bomb_tick()

{

	t--;

	set_hudmessage(0, 255, 0, 0.0, 0.27, 0, 6.0, 0.5)

	show_hudmessage(0, "*Bomba Wybuchnie za: %d sekund", t)

	

	if(t <= 0)

	{

		if(task_exists(TID))

		{

			remove_task(TID);

		}

	}

	

}

public Koniec_Rundy()

{

	if(task_exists(TID))

	{

		remove_task(TID);

	}

}








Użytkownik HubertTM edytował ten post 11.08.2011 12:48
Odpowiedz

hary - zdjęcie hary 11.08.2011

Zrobiłem tak wziąłem plugin bcd_hudtimer bo w nim jest stopniowanie koloru tzn im mniej czasu zostaje tym inny kolor i zapożyczyłem fragment rozmieszczenia napisu z pluginu HubertTM
0.0, 0.27, 0, 6.0, 0.5

I wyszło fajnie bo napis jest pod radarem tylko, że cały czas miga

/* 
 Bomb Countdown HUD Timer v0.2 by SAMURAI

	* Plugin Details
 With this plugin enabled, you can see an colored Hud Message with the c4 time left, until explode
  Remeber : if until explode remains less than 8 seconds, hudmessage color will be red, if > 7 will be yellow and > 13 will be green.

	* Required Modules:
 - CSX
 
        * Credits:
- Emp` for various indicates
- Alka for full tests 

	* Changelog
 - Fixed Events problems
 - Pcvars
 - Fixed any bug on plugin

*/


#include <amxmodx>
#include <csx>
 
#define PLUGIN "Bomb Countdown HUD Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI" 
 
new g_c4timer, pointnum;
new bool:b_planted = false;

new g_msgsync;
 
 
public plugin_init()
{
	register_plugin(PLUGIN,VERSION,AUTHOR);
 
	pointnum = get_cvar_pointer("mp_c4timer");
 
	register_logevent("newRound", 2, "1=Round_Start");
	register_logevent("endRound", 2, "1=Round_End");
	register_logevent("endRound", 2, "1&Restart_Round_");
 
	g_msgsync = CreateHudSyncObj();
}
 
public newRound()
{
	g_c4timer = -1;
	remove_task(652450);
	b_planted = false;
}
 
public endRound()
{
	g_c4timer = -1;
	remove_task(652450);
}
 
public bomb_planted()
{
	b_planted = true;
	g_c4timer = get_pcvar_num(pointnum);
	dispTime()
	set_task(1.0, "dispTime", 652450, "", 0, "b");
}
 
public bomb_defused()
{
	if(b_planted)
	{
		remove_task(652450);
		b_planted = false;
	}
    
}
 
public bomb_explode()
{
	if(b_planted)
	{
		remove_task(652450);
		b_planted = false;
	}
	
}
 
public dispTime()
{   
	if(!b_planted)
	{
		remove_task(652450);
		return;
	}
        
 
	if(g_c4timer >= 0)
	{
		if(g_c4timer > 13) set_hudmessage(0, 150, 0, 0.0, 0.27, 0, 6.0, 0.5);
		else if(g_c4timer > 7) set_hudmessage(150, 150, 0, 0.0, 0.27, 0, 6.0, 0.5);
		else set_hudmessage(150, 0, 0, 0.0, 0.27, 0, 6.0, 0.5);
 
		ShowSyncHudMsg(0, g_msgsync, "C4 wybuchnie za: %d", g_c4timer);
 
		--g_c4timer;
	}
  
}

Dołączona grafika
Użytkownik hary edytował ten post 11.08.2011 13:46
Odpowiedz

  • +
  • -
DarkGL - zdjęcie DarkGL 11.08.2011

Spoiler
Odpowiedz

Profesjonalista - zdjęcie Profesjonalista 11.08.2011

dzięki, za***iste plugi, juz mam na serwie, dobra robota :)
Odpowiedz

Adminek AMXX.PL - zdjęcie Adminek AMXX.PL 11.08.2011

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: odpowiedź udzielona

Jeśli się z tym nie zgadzasz, Dołączona grafika raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL
Odpowiedz
Zablokowany