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 132750980213054 dodana przez forma, 25.01.2012 17:43
Typ:


132750980213054
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.
/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <colorchat>
#define PLUGIN "sklep"
#define VERSION "1.0"
#define AUTHOR "forma"
 
 
new const gszPrefix[]	=	"^x04[SKLEP]";
new cenata = 7000;
new cenahe = 10000;
new cenahp = 10000;
new cenafl = 50;
new cenasm = 50;
 
public plugin_init() {
 
 
register_clcmd("say /sklep","sklep")
	register_clcmd("say /shop","sklep")
}
 
public sklep(id)
{
	if(!is_user_alive(id))
	   return PLUGIN_HANDLED;
	   {
 
 
 
 
 
 
 
 
	new menu = menu_create("Siema ^nSklep  dla \r Graczy","menu");
	menu_additem(menu,"\wKup \y Tarcze\r [3000$$]","1",0)
	menu_additem(menu,"\wKup \y HE\r [3000$$]","2",0)
	menu_additem(menu,"\wKup \y 1 HP\r [3000$$]","3",0)
	menu_additem(menu,"\wKup \y Granat Oslepiajacy\r [3000$$]","4",0)
	menu_additem(menu,"\wKup \y Granat Dymny\r [3000$$]","5",0)
	menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
	menu_display(id,menu,0)
 
}
 
 
 
 
 
 
}
 
 
 
public menu(id,menu,item)
{
	if(item==MENU_EXIT)
	{
		menu_destroy(menu)
		return PLUGIN_HANDLED
	}
	new data[6], iName[64]
	new access, callback
	menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
	new key = str_to_num(data)
	switch(key)
	{
		case 1 :
		{
		if (cs_get_user_money(id) < cenata){
		ColorChat(id,  GREEN, "%s ^x01 Masz za malo kasy aby kupic:^x03 Tarcze.",gszPrefix)
		return PLUGIN_HANDLED;
 
 
	}
		if (cs_get_user_money(id) >= cenata )
		give_item(id, "weapon_shield")  
 
ColorChat(id,  GREEN, "%s ^x01 Kupiles:^x03 Tarcze.",gszPrefix)
		cs_set_user_money(id , cs_get_user_money(id) - cenahe, 0)
		}
 
 
 
	case 2 :
		{
		if (cs_get_user_money(id) < cenahe){
		ColorChat(id,  GREEN, "%s ^x01 Masz za malo kasy aby kupic:^x03 HE.",gszPrefix)
		return PLUGIN_HANDLED;
 
 
	}
		if (cs_get_user_money(id) >= cenahe )
		give_item(id, "weapon_hegrenade") 
 
ColorChat(id,  GREEN, "%s ^x01 Kupiles:^x03 HE",gszPrefix)
		cs_set_user_money(id , cs_get_user_money(id) - cenahe, 0)
		}
 
 
 
		case 3 :
		{
		if (cs_get_user_money(id) < cenahp){
		ColorChat(id,  GREEN, "%s ^x01 Masz za malo kasy aby kupic:^x03 1 HP.",gszPrefix)
		return PLUGIN_HANDLED;
 
 
	}
		if (cs_get_user_money(id) >= cenahp )
		set_user_health(id, get_user_health(id) + 1)
 
ColorChat(id,  GREEN, "%s ^x01 Kupiles:^x03 1 HP",gszPrefix)
		cs_set_user_money(id , cs_get_user_money(id) - cenahp, 0)
	}
 
 
 
		case 4 :
		{
		if (cs_get_user_money(id) < cenafl){
		ColorChat(id,  GREEN, "%s ^x01 Masz za malo kasy aby kupic:^x03  Granat oslepiajacy.",gszPrefix)
		return PLUGIN_HANDLED;
 
 
	}
		give_item(id, "weapon_flashbang") 
 
ColorChat(id,  GREEN, "%s ^x01 Kupiles:^x03 1 oslepiajacy",gszPrefix)
		cs_set_user_money(id , cs_get_user_money(id) - cenafl, 0)
		}
 
 
 
		case 5 :
		{
		if (cs_get_user_money(id) < cenasm){
		ColorChat(id,  GREEN, "%s ^x01 Masz za malo kasy aby kupic:^x03 Granat dymny.",gszPrefix)
		return PLUGIN_HANDLED;
 
 
	}
		give_item(id, "weapon_smokegrenade") 
 
ColorChat(id,  GREEN, "%s ^x01 Kupiles:^x03 Granat dymny",gszPrefix)
		cs_set_user_money(id , cs_get_user_money(id) - cenasm, 0)
}
}
}