Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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 h74hb5udjaau dodana przez _McHappy, 03.11.2016 21:33
Typ:



Vip_Edycja
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.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
363.
364.
365.
366.
367.
368.
369.
370.
371.
372.
373.
374.
375.
376.
377.
378.
379.
380.
381.
382.
383.
384.
385.
386.
387.
388.
389.
390.
391.
392.
393.
394.
395.
396.
397.
398.
399.
400.
401.
402.
403.
404.
405.
406.
407.
408.
409.
410.
411.
412.
413.
414.
415.
416.
417.
418.
419.
420.
421.
422.
423.
424.
425.
426.
427.
428.
429.
430.
431.
432.
433.
434.
435.
436.
437.
438.
439.
440.
441.
442.
443.
444.
445.
/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <colorchat>
 
#define PLUGIN  "VIP"
#define AUTHOR  "glut"
#define VERSION "1.7a"
 
#define USES_PER_ROUND 1
#define flaga ADMIN_LEVEL_H
#define SCOREATTRIB_NONE     0
#define SCOREATTRIB_DEAD    (1<<0)
#define SCOREATTRIB_BOMB    (1<<1)
#define SCOREATTRIB_VIP     (1<<2)
 
#define VIP_MENU_RUNDA 3
 
new bool:HasC4[33];
new bool:bSpeed[33];
new bool:bGrava[33];
new bool:HPstart[33];
new bool:HPsklep[33];
 
new raz[33];
new raz2[33];
new cvar,cvar2,cvar3,cvar4,cvar5,cvar6,cvar7,cvar8,cvar10,cvar11,cvar12
new name[33]
 
new g_iRunda;
 
new const modeltt[] = "viptt";
new const model_pathtt[] = "models/player/viptt/viptt.mdl";
 
new const modelct[] = "vipct";
new const model_pathct[] = "models/player/vipct/vipct.mdl";
 
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
 
	register_clcmd("say /vip","opis_vipa");
	register_clcmd("say /mv","menu_vipa",flaga);
	register_clcmd("say /sklep","sklep",flaga);
	register_clcmd("say /vips","vips");
 
	register_logevent("Round_Start",2,"1=Round_Start");
	register_logevent("GameCommencing", 2, "1=Game_Commencing");
 
	register_event("CurWeapon","CurWeapon","be", "1=1")
	register_event("DeathMsg", "DeathMsg", "a")
 
	register_message(get_user_msgid("SayText"),"handleSayText");
	register_message(get_user_msgid("ScoreAttrib"), "MessageScoreAttrib");
 
	RegisterHam(Ham_Spawn, "player", "Spawn", 1);
 
	cvar = register_cvar("gv_block_bronie","0")
	cvar2 = register_cvar("gv_block_sklep","0")
	cvar3 = register_cvar("gv_kill_hs","20")
	cvar4 = register_cvar("gv_kill","10")
	cvar5 = register_cvar("gv_start_hp","100")
	cvar6 = register_cvar("gv_kasa_hs","500")
	cvar7 = register_cvar("gv_kasa","300")
	cvar8 = register_cvar("gv_maxhp","160")
	cvar10 = register_cvar("gv_widocznosc","255")
	cvar11 = register_cvar("gv_kasastart","1000")
	cvar12 = register_cvar("gv_przywitanie","1")
}
public plugin_precache()
{
	precache_model(model_pathtt);
	precache_model(model_pathct);
}
public client_putinserver(id)
{
	if(is_user_connected(id) && get_user_flags(id) & flaga)
	{
		if(get_pcvar_num(cvar12) == 1)
		{
			get_user_name(id,name,31);
			set_hudmessage(0, 255, 0, -1.0, 0.25, 0, 1.0, 2.0, 0.1, 0.2, 2);
			show_hudmessage(id,"Vip %s Wszedl Na Serwer",name);
		}
	}
}
public Spawn(id)
{
	if(!is_user_alive(id))
		return HAM_IGNORED;
 
	cs_reset_user_model(id);
 
	if(get_user_flags(id) & flaga)
	{
		switch(get_user_team(id))
		{
			case 1: cs_set_user_model(id, modeltt);
				case 2: cs_set_user_model(id, modelct);
				default: cs_reset_user_model(id);
		}
	}
 
	return HAM_IGNORED;
}
public Round_Start()
{
	++g_iRunda;
	for (new id=1; id < 33; id++)
	{
		if(is_user_alive(id) && get_user_flags(id) & flaga){
 
			set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderTransAlpha, get_pcvar_num(cvar10))
 
			set_user_footsteps(id, 0)
 
			cs_set_user_money(id,cs_get_user_money(id)+get_pcvar_num(cvar11))
 
			bSpeed[id] = false;
 
			raz[id] = 0;
 
			raz2[id] = 0;
 
			bGrava[id] = false;
 
			HPstart[id] = true;
 
			HPsklep[id] = false;
 
			set_task(5.0, "bronie",_,_, _, "a",1)
		}
	}
}
public DeathMsg()
{
	new kid = read_data(1)  //zabojca
 
	new hs = read_data(3)   // HeadShot (1 == true)
 
	if(!is_user_alive(kid))
		return PLUGIN_CONTINUE;
{
	if(hs && get_user_flags(kid) && flaga)
	{
		cs_set_user_money(kid,cs_get_user_money(kid)+get_pcvar_num(cvar6))
		set_user_health(kid,get_user_health(kid)+get_pcvar_num(cvar3)) //HP za HS
		set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
		show_hudmessage(kid, "Otrzymales +%d do hp", get_pcvar_num(cvar3))
	}
	else
	{
		if(get_user_flags(kid) && flaga)
		{
			cs_set_user_money(kid,cs_get_user_money(kid)+get_pcvar_num(cvar7))
			set_user_health(kid,get_user_health(kid)+get_pcvar_num(cvar4)) // HP za killa
			set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
			show_hudmessage(kid, "Otrzymales +%d do hp", get_pcvar_num(cvar4))
		}
	}
}
if(get_user_health(kid) >= get_pcvar_num(cvar8))
	set_user_health(kid, get_pcvar_num(cvar8));
	return PLUGIN_CONTINUE;
}
public CurWeapon(id)
{
	if(bSpeed[id]){
		set_user_maxspeed(id,get_user_maxspeed(id)*2)
	}
	if(bGrava[id]){
		set_user_gravity(id,0.5)
	}
	if(HPstart[id]){
		set_user_health(id,get_pcvar_num(cvar5))
	}
	if(HPsklep[id]){
		if(raz2[id] >= USES_PER_ROUND){
			return PLUGIN_HANDLED;
		}
		raz2[id]++;
		set_user_health(id,get_user_health(id)+50)
	}
	return PLUGIN_CONTINUE;
}
public opis_vipa(id)
{
	show_motd(id, "vip.txt")
}
 
public menu_vipa(id)
{	
	if(get_user_flags(id) & flaga)
	{	
		new Menu_Vipa=menu_create("Menu Vipa:","cbmenu_vipa");
 
		if(g_iRunda<VIP_MENU_RUNDA)
		{
			new temp[64];
			new g_iPozostalo = VIP_MENU_RUNDA-g_iRunda;
			if(g_iPozostalo==1) formatex(temp, charsmax(temp), "dBronie r[ wDostepne yw nastepnej rundzie r]");
			else formatex(temp, charsmax(temp), "dBronie r[ wDostepne za y%d rund%sr ]", g_iPozostalo, (g_iPozostalo < 5 ? "y" : ""));
			menu_additem(Menu_Vipa,temp);
		}
		else
			menu_additem(Menu_Vipa,"Bronie");
		menu_additem(Menu_Vipa,"Sklep");
 
		menu_setprop(Menu_Vipa,MPROP_EXITNAME,"Wyjscie");
		menu_setprop(Menu_Vipa,MPROP_EXIT,MEXIT_ALL);
 
		menu_display(id,Menu_Vipa,0);
	}
	return PLUGIN_HANDLED;
}
 
public cbmenu_vipa(id,menu,item)
{
 
	switch(item)
	{
		case 0:
		{
			if(g_iRunda<VIP_MENU_RUNDA) 
			{
				menu_vipa(id)
				client_print(id, print_center, "[ ViP ] Menu broni bedzie dostepne od %d. rundy!", VIP_MENU_RUNDA);
				return PLUGIN_CONTINUE;
			}
			bronie(id)
		}
		case 1:
		{
			sklep(id)
		}
	}
 
	return PLUGIN_HANDLED;
}
 
public bronie(id)
{
	if(get_pcvar_num(cvar) == 0)
	{
		if(is_user_alive(id))
		{
			if(raz[id] >= USES_PER_ROUND){
				client_print(id, print_chat, "* W tej rundzie juz wybrales bron");
				return PLUGIN_HANDLED;
			}
			raz[id]++;
 
			new Bronie=menu_create("Wybierz bron:","cbbronie");
 
			menu_additem(Bronie,"M4A1+DEAGLE");
			menu_additem(Bronie,"AK47+DEAGLE");
			menu_additem(Bronie,"AWP+DEAGLE");
			menu_additem(Bronie,"MP5+DEAGLE");
			menu_additem(Bronie,"SHOTGUN+DEAGLE");
 
			menu_setprop(Bronie,MPROP_EXITNAME,"Wyjscie");
			menu_setprop(Bronie,MPROP_EXIT,MEXIT_ALL);
 
			menu_display(id,Bronie,0);
		}
		else
		{
			client_print(id,print_chat,"Nie zyjesz")
		}
	}
	return PLUGIN_HANDLED;
}
public cbbronie(id,menu,item)
{
	switch(item)
	{
		case 0:
		{
			if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
				HasC4[id] = true;
			else
				HasC4[id] = false;
 
			strip_user_weapons (id)
			give_item(id, "weapon_m4a1")
			give_item(id, "ammo_556nato")
			give_item(id, "ammo_556nato")
			give_item(id, "ammo_556nato")
			give_item(id, "weapon_deagle")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "weapon_knife")
			give_item(id, "weapon_hegrenade")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_smokegrenade")
			give_item(id, "item_thighpack")
			give_item(id, "item_assaultsuit")
			client_print(id,print_chat,"Wybrales M4A1,DEAGLE i wszystkie granaty!!!");
 
			if (HasC4[id])
			{
				give_item(id, "weapon_c4");
				cs_set_user_plant( id );
			}
		}
		case 1:
		{
			if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
				HasC4[id] = true;
			else
				HasC4[id] = false;
 
			strip_user_weapons (id)
			give_item(id, "weapon_ak47")
			give_item(id, "ammo_762nato")
			give_item(id, "ammo_762nato")
			give_item(id, "ammo_762nato")
			give_item(id, "weapon_deagle")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "weapon_knife")
			give_item(id, "weapon_hegrenade")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_smokegrenade")
			give_item(id, "item_thighpack")
			give_item(id, "item_assaultsuit")
			client_print(id,print_chat,"Wybrales AK47,DEAGLE i wszystkie granaty!!!");
 
			if (HasC4[id])
			{
				give_item(id, "weapon_c4");
				cs_set_user_plant( id );
			}
		}
		case 2:
		{
			if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
				HasC4[id] = true;
			else
				HasC4[id] = false;
 
			strip_user_weapons (id)
			give_item(id, "weapon_awp")
			give_item(id, "ammo_338magnum")
			give_item(id, "ammo_338magnum")
			give_item(id, "ammo_338magnum")
			give_item(id, "weapon_deagle")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "weapon_knife")
			give_item(id, "weapon_hegrenade")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_smokegrenade")
			give_item(id, "item_thighpack")
			give_item(id, "item_assaultsuit")
			client_print(id,print_chat,"Wybrales AWP,DEAGLE i wszystkie granaty!!!");
 
			if (HasC4[id])
			{
				give_item(id, "weapon_c4");
				cs_set_user_plant( id );
			}
		}
		case 3:
		{
			if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
				HasC4[id] = true;
			else
				HasC4[id] = false;
 
			strip_user_weapons (id)
			give_item(id, "weapon_mp5navy")
			give_item(id, "ammo_9mm")
			give_item(id, "ammo_9mm")
			give_item(id, "ammo_9mm")
			give_item(id, "ammo_9mm")
			give_item(id, "weapon_deagle")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "weapon_knife")
			give_item(id, "weapon_hegrenade")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_smokegrenade")
			give_item(id, "item_thighpack")
			give_item(id, "item_assaultsuit")
			client_print(id,print_chat,"Wybrales MP5,DEAGLE i wszystkie granaty!!!");
 
			if (HasC4[id])
			{
				give_item(id, "weapon_c4");
				cs_set_user_plant( id );
			}
		}
		case 4:
		{
			if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
				HasC4[id] = true;
			else
				HasC4[id] = false;
 
			strip_user_weapons (id)
			give_item(id,"weapon_xm1014")
			give_item(id, "ammo_buckshot")
			give_item(id, "ammo_buckshot")
			give_item(id, "ammo_buckshot")
			give_item(id, "ammo_buckshot")
			give_item(id, "ammo_buckshot")
			give_item(id, "weapon_deagle")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "ammo_50ae")
			give_item(id, "weapon_knife")
			give_item(id, "weapon_hegrenade")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_flashbang")
			give_item(id, "weapon_smokegrenade")
			give_item(id, "item_thighpack")
			give_item(id, "item_assaultsuit")
			client_print(id,print_chat,"Wybrales SHOTGUN,DEAGLE i wszystkie granaty!!!");
 
			if (HasC4[id])
			{
				give_item(id, "weapon_c4");
				cs_set_user_plant&#
			

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