cerere plugin sunet sf. hartii

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 .
DiRTy
Membru, skill +1
Membru, skill +1
Posts: 191
Joined: 11 Jun 2009, 12:53
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 79 times
Been thanked: 11 times

05 Sep 2010, 19:25

E .wav
DiRTy
Membru, skill +1
Membru, skill +1
Posts: 191
Joined: 11 Jun 2009, 12:53
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 79 times
Been thanked: 11 times

06 Sep 2010, 17:37

Deci ? :)
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

06 Sep 2010, 23:18

Retras din activitate.
DiRTy
Membru, skill +1
Membru, skill +1
Posts: 191
Joined: 11 Jun 2009, 12:53
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 79 times
Been thanked: 11 times

07 Sep 2010, 01:49

Vreau unul simplu... ala oricum e altceva..
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

07 Sep 2010, 01:52

DiRTy wrote:Vreau unul simplu... ala oricum e altceva..
cat de simplu vrei ?
modifici sunetul din Mapend-Sounds.cfg ce e asa greu ?
si tu asta ai cerut cand se schimba harta sa se auda un sunet
acest plugin exact asta face
Retras din activitate.
DiRTy
Membru, skill +1
Membru, skill +1
Posts: 191
Joined: 11 Jun 2009, 12:53
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 79 times
Been thanked: 11 times

07 Sep 2010, 13:21

.wav nu merge .
Nu vreau sa schimb mp_chattime.

Sunetul pe care il am este de 2 secunde, nu de 1 minut cum e acolo.
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

07 Sep 2010, 13:32

incearca acum
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

new PLUGIN[]="Mapend Sounds"
new AUTHOR[]="ntfs"
new VERSION[]="1.33"
new soundfile[128]
new cached

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_cvar("mapend_sounds", VERSION, FCVAR_SERVER)
	set_task(1.0, "exec_sound", 0, "", 1, "d", 1)
	register_cvar("amx_mapend_sounds_advert", "1")
}

public plugin_precache()
{
	new txtlen
	new loop
	new line
	new config[64]
	get_configsdir(config, 63)
	format(config, 63, "%s/Mapend-Sounds.cfg", config)
	new lines = file_size(config, 1)	

	if (file_exists(config))
	{
		while(cached != 1 && loop < 10)		// run until a sound was found(cached),
		{ 					// or the maximum numbers of loops 
			line = random_num(0,lines)	// has been reached
			
			read_file(config,line,soundfile,128,txtlen)
			
			if(containi(soundfile,".wav") != -1)
			{
				if((file_exists(soundfile) == 1) && (equal(soundfile[0],";",1) != 1))
				{
					precache_generic(soundfile)
					server_print("[AMXX] Mapend-Sounds: Caching ^"%s^".", soundfile)
					cached = 1
				}
				else
				{
					server_print("[AMXX] Mapend-Sounds: Skipping ^"%s^".", soundfile)
				}
			}
			loop += 1
		}
	}
	else
	{
		write_file(config,"",-1)
	}
}

public exec_sound()
{
	if(cached == 1)
	{
		client_cmd(0, "spk %s", soundfile)
		server_print("[AMXX] Mapend-Sounds: Playing ^"%s^".", soundfile)
		if(get_cvar_num("amx_mapend_sounds_advert") == 1)
		{
			set_hudmessage(42, 42, 255, -1.0, 0.8, 0, 6.0, 12.0, 0.2, 0.2, -1)
			show_hudmessage(0, "- [AMXX] Mapend-Sounds: Playing Sound -")
			client_print(0, print_chat, "- [AMXX] Mapend-Sounds: Playing Sound -")
		}
	}
	else
	{
		server_print("[AMXX] Mapend-Sounds: No Soundfile!!!")
	}
}
in mapend_sounds.cfg bagi la sfarsit cu .wav
Retras din activitate.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests