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 1ap7lxp086x4w dodana przez patryQ1997, 29.09.2014 18:55
Typ:



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.
73.
74.
75.
/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <colorchat>
 
#define PLUGIN "Flash Snitch"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
 
#define ID 3322
 
new g_flasher
 
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
 
	register_event("ScreenFade", "ScreenFade", "be", "4=255", "5=255", "6=255", "7>199") 
	register_event("23", "TEMPENTITY", "a", "1=5", "6=25", "7=6") 
 
	register_forward(FM_SetModel, "SetModel") 
}
 
 
public SetModel(ent, model[]) 
{    
	if(equal(model, "models/w_flashbang.mdl")) 
	{    
		static owner
		owner = pev(ent, pev_owner)
		if(owner)         
		{
			set_task(1.52,"get_flasher", ID + owner)
		}
	}
} 
 
public TEMPENTITY()
{    
	set_task(0.05, "reset_flasher") 
	return PLUGIN_CONTINUE
} 
 
public reset_flasher()
{ 
	g_flasher = 0
}
 
public get_flasher(id)
{ 
	g_flasher = (id - ID)
}
 
public ScreenFade(id) 
{    
	if(is_user_alive(id))
	{
		if(id != g_flasher && get_user_team(id) == get_user_team(g_flasher))
		{
			static name[33], message[128]
 
			get_user_name(g_flasher, name, 32)            
			formatex(message, 127, "de_dust2^x01 # Zostales oslepiony przez ^x03%s^x01", name)
			ColorChat(id,GREEN, message)            
 
			get_user_name(id, name, 32)            
			formatex(message, 127, "de_dust2^x01 # Wlasnie oslepiles gracza ^x03%s^x01", name)
			ColorChat(g_flasher,GREEN, message)
		}
	}    
} 
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi ansicpg1250 deff0 deflang1045{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard f0 fs16 n par }
*/

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