[REZOLVAT]Cerere Plugin C4 Hud Timer

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
EmiNem | XTR
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 02 Aug 2014, 20:59
Detinator Steam: Da
CS Status: Counter-Strike: Global Offensive
SteamID: ** ! Private ! **
Fond eXtream: 0
Location: Bucureşti
Has thanked: 11 times

04 Aug 2014, 18:45

Descriere plugin cerut: Vreau un plugin ca acesta din poză: https://forums.alliedmods.net/showthrea ... 0?p=441200 îmi cer scuze dacă e reclamă, dar vă rog să lăsaţi link-ul că nu face reclamă cu nimic.
Alte înformaţii: Deci, eu am găsit plugin-ul, dar problema e că nu-l găsesc cum îl vreau. La ultimele 10 secunde, nu le numără robotul adică nu zice nimic, rămâne doar sunetul ăla de bombă. Am găsit pe un server tot ca plugin-ul acesta doar că la ultimele 10 secunde, numără robotul şi spune 10, 9, 8, 7, etc.. şi dacă se poate, la ultimele 10 secunde să fie cu culoarea portocaliu. Şi în rest să fie normal de unde începe de la 35.

Mulţumesc şi sper să-mi puteţi da ceea ce doresc.

O seară bună.
Last edited by Cosmin on 08 Aug 2014, 22:42, edited 1 time in total.
Reason: #Rezolvat.
RoyalServer
User avatar
Gabriel eXtream
Membru, skill +2
Membru, skill +2
Posts: 953
Joined: 20 Aug 2012, 16:43
Detinator Steam: Da
CS Status: Can't be touched
Reputatie: Fost Moderator ajutator
Nume anterior: BlueSky#, EcHoO.
0.3 / 3
Utilizator neserios ( tepar )
Fond eXtream: 0
Location: Bucuresti
Has thanked: 67 times
Been thanked: 125 times

04 Aug 2014, 20:45

Aia adaugi din statscfg.amxx
EmiNem | XTR
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 02 Aug 2014, 20:59
Detinator Steam: Da
CS Status: Counter-Strike: Global Offensive
SteamID: ** ! Private ! **
Fond eXtream: 0
Location: Bucureşti
Has thanked: 11 times

05 Aug 2014, 07:55

Fii amabil si spune-mi te rog cum FAC chestia asta, can EU am cerut si ajutor nu sa-mi spuneti de under.
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

05 Aug 2014, 16:01

ma,deci tu poti activa/dezactiva din amx_statscfgmenu sunetele alea la bomba,scrii in consola amx_statscfgmenu si o sa-ti apara un meniu cu on/off.
EmiNem | XTR
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 02 Aug 2014, 20:59
Detinator Steam: Da
CS Status: Counter-Strike: Global Offensive
SteamID: ** ! Private ! **
Fond eXtream: 0
Location: Bucureşti
Has thanked: 11 times

05 Aug 2014, 19:12

Frate, deci chiar nu vă înţeleg şi sper să mă înţelegeţi. Am făcut cum mi-aţi spus, m-am dus pe server şi am scris amx_statscfgmenu (ştiu meniul ăsta şi ştiu ce face) am căutat acolo cum să activez sunetele la bombă dar n-am găsit absolut nimic despre acest lucru. Fiţi mai expliciţi şi spuneţi-mi cum ce şi unde şi pe ce să apăs, ce propoziţie.

Mulţumesc!!
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

07 Aug 2014, 03:29

Vezi asa | Afiseaza codul
/* 
 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, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else if(g_c4timer < 11)
		{
			static sound[20];
			num_to_str(g_c4timer, sound, 1)
			client_cmd(id, "spk ^"fvox/%s^"", sound)
		}
		else if(g_c4timer > 7)
			set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else
			set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);

		ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer);
		--g_c4timer;
	}
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
EmiNem | XTR
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 02 Aug 2014, 20:59
Detinator Steam: Da
CS Status: Counter-Strike: Global Offensive
SteamID: ** ! Private ! **
Fond eXtream: 0
Location: Bucureşti
Has thanked: 11 times

07 Aug 2014, 17:05

Tot nu merge, nu apar sunetele la ultimele 9 secunde.

Ajutor vă rog..
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

07 Aug 2014, 20:15

Vezi acum | Afiseaza codul
/* 
 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, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else if(g_c4timer > 7)
			set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else
			set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);

		if(g_c4timer < 11)
		{
			static sound[20];
			num_to_str(g_c4timer, sound, 1)
			client_cmd(0, "spk ^"fvox/%s^"", sound)
		}
		ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer);
		--g_c4timer;
	}
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
mr.f3lyx
Membru, skill +2
Membru, skill +2
Posts: 610
Joined: 10 Nov 2013, 20:24
Detinator Steam: Da
Location: Palermo, Italy
Has thanked: 69 times
Been thanked: 17 times

08 Aug 2014, 03:07

nu mergea am testat si eu
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

08 Aug 2014, 15:59

Greseala mea :))
| Afiseaza codul
/* 
 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, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else if(g_c4timer > 7)
			set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else
			set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);

		if(g_c4timer < 11)
		{
			static sound[20];
			num_to_str(g_c4timer, sound, 19)
			client_cmd(0, "spk ^"fvox/%s^"", sound)
		}
		ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer);
		--g_c4timer;
	}
}
Acum ar trebui sa mearga.
93.114.82.17:27015 - Monster Invasion CO-OP Mod
EmiNem | XTR
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 02 Aug 2014, 20:59
Detinator Steam: Da
CS Status: Counter-Strike: Global Offensive
SteamID: ** ! Private ! **
Fond eXtream: 0
Location: Bucureşti
Has thanked: 11 times

08 Aug 2014, 17:05

Tot nu merge, omg frate.. nu mai ştiţi să puneţi şi voi un sunet? :(
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

08 Aug 2014, 17:32

Tipule, nu aveam chef sa pun la fiecare cifra cate un rand pentru sunetul tau.

Asta merge.
| Afiseaza codul
#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, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else if(g_c4timer > 7)
			set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
		else
			set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);

		if(g_c4timer < 11)
			client_cmd(0, "spk fvox/%s", check_number(g_c4timer))
		ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer);
	}
	--g_c4timer;
}

stock check_number(numere)
{
	static numar[20];
	switch(numere)
	{
		case 1: formatex(numar, 20, "one")
		case 2: formatex(numar, 20, "two") 
		case 3: formatex(numar, 20, "three") 
		case 4: formatex(numar, 20, "four") 
		case 5: formatex(numar, 20, "five") 
		case 6: formatex(numar, 20, "six") 
		case 7: formatex(numar, 20, "seven") 
		case 8: formatex(numar, 20, "eight") 
		case 9: formatex(numar, 20, "nine") 
		case 10: formatex(numar, 20, "ten") 
	}
	return numar;
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests