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. | #include <amxmodx>
#include <amxmisc>
new gmsgFade
new name2[32],param,pozes,poze
new gServerNick[33]
new gBanTime, gBanReason, gBanNick, gServNick
public plugin_init()
{
register_plugin("Ultimate SS Taker", "V 2.0", "navir")
register_concmd("amx_ss", "plmm", ADMIN_KICK, "Usage: amx_ss <player>")
register_dictionary("ultimate_ss.txt")
gmsgFade = get_user_msgid("ScreenFade")
gBanTime = register_cvar("uss_bantime", "60")
gBanReason = register_cvar("uss_banreason", "Wrzuc screen'y na WWW")
gBanNick = register_cvar("uss_bannick", "Ultimate SS")
gServNick = get_cvar_pointer("amxbans_servernick")
if (gServNick)
get_pcvar_string(gServNick, gServerNick, 32)
}
public plmm(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[32], tname[32]
read_argv(1, arg, 31)
new player = cmd_target(id, arg, 4)
if (!player)
return PLUGIN_HANDLED
get_user_name(player, name2, 31)
get_user_ip(player, tname, 31, 1)
client_print(id, print_chat, "%L", id, "ADMIN_INFO_1", name2,tname)
client_print(id, print_chat, "%L", id, "ADMIN_INFO_1", name2,tname)
client_print(id, print_chat, "%L", id, "ADMIN_INFO_1", name2,tname)
pozes=5
poze=1
client_print(id, print_chat, "%L", id, "ADMIN_INFO_2", name2)
new hostname[64], usrip[32], admin[32], timer[32];
get_cvar_string("hostname",hostname,63);
get_user_name(player,tname,31);
get_user_ip(param,usrip,31);
get_user_name(id, admin, 31);
get_time("%m/%d/%Y - %H:%M:%S", timer,31);
client_print(player, print_center, "%L", id, "PHOTO_COUNT", poze+1)
client_print(player, print_chat, "-------------------------------------------------------------------")
client_print(player, print_chat, "%L", id, "PHOTO_2")
client_print(player, print_chat, "%L", id, "MESSAGE_01", admin)
client_print(player, print_chat, "%L", id, "MESSAGE_02", timer,hostname)
client_print(player, print_chat, "-------------------------------------------------------------------")
client_cmd(player,"snapshot")
poze++
param=player
set_task(1.0,"ssmaker",3322,_,_,"b");
return PLUGIN_HANDLED
}
public ssmaker(id, level, cid)
{
if(poze < pozes)
{
if(poze==3)
{
message_begin(MSG_ONE, gmsgFade, {0,0,0},param)
write_short(14<<7)
write_short(58<<6)
write_short(1<<0)
write_byte(5)
write_byte(255)
write_byte(0)
write_byte(255)
message_end()
}
new hostname[64], tname[32], usrip[32], timer[32];
get_cvar_string("hostname",hostname,63);
get_user_name(param,tname,31);
get_user_ip(param, usrip, 31, 1)
get_time("%m/%d/%Y - %H:%M:%S", timer,31);
client_print(param, print_center, "%L", id, "PHOTO_COUNT", poze+1)
client_print(param, print_chat, "-------------------------------------------------------------------")
client_print(param, print_chat, "%L", id, "PHOTO_COUNT", poze+1)
client_print(param, print_chat, "%L", id, "MESSAGE_03", tname, usrip)
client_print(param, print_chat, "%L", id, "MESSAGE_02", timer,hostname)
client_print(param, print_chat, "-------------------------------------------------------------------")
client_cmd(param,"snapshot")
poze++
} else {
client_cmd(param,"snapshot")
client_cmd(param,"kill;wait;jointeam 6")
static BanNick[33]
get_pcvar_string(gBanNick, BanNick, 32)
static BanReason[65]
get_pcvar_string(gBanReason, BanReason, 64)
set_pcvar_string(gServNick, BanNick)
server_cmd("amx_ban 0 #%d Wrzuc screeny na forum !", get_user_userid(param))
get_user_name(param, name2, 31)
client_print(0, print_chat, "%L", id, "SS_TAKEN", name2)
client_print(param, print_chat, "%L", id, "USER_INFO_1", name2)
client_print(param, print_chat, "%L", id, "USER_INFO_2")
set_task(2.0, "przywroc_servernick")
remove_task(3322)
}
}
public przywroc_servernick()
{
set_pcvar_string(gServNick, gServerNick)
} |