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
 

Wklejka cgma80zvmvi6 dodana przez Skull., 26.06.2014 08:26
Typ:



Część kodu na dźwięk łoma
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
new const gSounds[][] = {
	"lomsvip/knife_deploy1.wav",
	"lomsvip/knife_hitwall1.wav",
	"lomsvip/knife_hit1.wav",
	"lomsvip/knife_hit2.wav",
	"lomsvip/knife_hit3.wav",
	"lomsvip/knife_hit4.wav",
	"lomsvip/knife_slash1.wav",
	"lomsvip/knife_slash2.wav",
	"lomsvip/knife_stab.wav"
};
 
 
public fw_emitsound(id, channel, sample[], Float:volume, Float:attenuation, fFlags, pitch)
{
	if(!is_user_connected(id))
		return FMRES_IGNORED;
 
	if(!(get_user_flags(id) & VIP))
		return FMRES_IGNORED; 
 
	if(get_user_team(id) == 2)
		return FMRES_IGNORED;
	{
		if(equal(sample, "weapons/knife_deploy1.wav"))
		{         
			emit_sound(id, channel, gSounds[6], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_hitwall1.wav"))
		{         
			emit_sound(id, channel, gSounds[1], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_hit1.wav"))
		{         
			emit_sound(id, channel, gSounds[2], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_hit2.wav"))
		{         
			emit_sound(id, channel, gSounds[3], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_hit3.wav"))
		{         
			emit_sound(id, channel, gSounds[4], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_hit4.wav"))
		{         
			emit_sound(id, channel, gSounds[5], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_slash1.wav"))
		{         
			emit_sound(id, channel, gSounds[6], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_slash2.wav"))
		{         
			emit_sound(id, channel, gSounds[7], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
		if(equal(sample, "weapons/knife_stab.wav"))
		{         
			emit_sound(id, channel, gSounds[7], volume, attenuation, fFlags, pitch);
			return FMRES_SUPERCEDE;
		}
	}
	return FMRES_IGNORED; 
}

Dodanych wklejek: 4031
Powered By (Pav32) Pastebin © 2011