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. | /* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fun>
#define PLUGIN "Pb Shop"
#define VERSION "1.0"
#define AUTHOR "[AvP] ELOS"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /sklep", "Sklep");
register_clcmd("say_team /sklep", "Sklep");
register_clcmd("say /shop", "Sklep");
register_clcmd("say_team /shop", "Sklep");
register_logevent( "Resetuj", 2, "1=Round_Start" );
}
public Sklep(id)
{
new tytul[25];
format(tytul, 24, "\rSklep \yPaintball \rVIP");
new menu = menu_create(tytul, "Sklep_Handler");
menu_additem(menu, "Granat Wybuchowy \yKoszt: \r5000$");//1
menu_additem(menu, "Wyrzutnia Granatow \yKoszt: \r14000$");//2
menu_additem(menu, "Granat Dymny \yKoszt: \r4000$");//3
menu_additem(menu, "Grawitacja\yKoszt: \r10000$");//4
menu_additem(menu, "Ciche buty\yKoszt: \r12000$");//4
menu_display(id, menu);
}
public Sklep_Handler(id, menu, item)
{
if(!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE;
new kasa = cs_get_user_money(id);
if(item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_CONTINUE;
}
switch(item)
{
case 0:
{
if(kasa >= 5000)
{
cs_set_user_money(id, kasa-5000);
give_item(id, "weapon_hegrenade")
client_print(id, print_chat, "[Sklep] Kupiles Granat Wybuchowy!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 1:
{
if(kasa >= 14000)
{
cs_set_user_money(id, kasa-14000);
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
client_print(id, print_chat, "[Sklep] Kupiles Wyrzutnie Granatow posiadasz 2 ladunki!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 2:
{
if(kasa >= 4000)
{
cs_set_user_money(id, kasa-4000);
give_item(id, "weapon_smokegrenade")
client_print(id, print_chat, "[Sklep] Kupiles Granat Dymny!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 3:
{
if(kasa >= 10000)
{
cs_set_user_money(id, kasa-10000);
set_user_gravity(id, 0.575);
client_print(id, print_chat, "[Sklep] Kupiles wieksza grawitacje!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 4:
{
if(kasa >= 12000)
{
cs_set_user_money(id, kasa-12000);
set_user_footsteps(id, 1);
client_print(id, print_chat, "[Sklep] Kupiles ciche buty!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
}
return PLUGIN_CONTINUE;
}
public Resetuj(id){
if(is_user_connected(id) && is_user_alive(id)){
for(new i=0; i<32; i++){
set_user_gravity(i, 1.0)
set_user_footsteps(i, 0)
}
}
} |