-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,chat_op].cs2
51 lines (51 loc) · 1.39 KB
/
[clientscript,chat_op].cs2
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
// 86
[clientscript,chat_op](int $opindex0, string $opbase0, int $chattype1)
def_string $string1 = removetags($opbase0);
switch_int ($opindex0) {
case 1 :
opplayer(4, $string1);
case 2 :
opplayer(1, $string1);
case 8 :
%varcstring370 = $string1;
case 9 :
if ($chattype1 = 41) {
if (activeclanchannel_find_affined(0) = true) {
~clan_sidepanel_op(7, -1, $string1, activeclanchannel_getuserslot($string1));
} else {
mes("The game cannot process your Kick request now. Please reconnect to the clan's channel.");
}
} else {
~friendschat_sendkick($string1);
}
case 10 :
if ($chattype1 = 41) {
if (activeclanchannel_find_affined(0) = true) {
~clan_sidepanel_op(8, -1, $string1, activeclanchannel_getuserslot($string1));
} else {
mes("The game cannot process your Ban request now. Please reconnect to the clan's channel.");
}
}
case default :
if (friend_test($string1) = true) {
if ($opindex0 = 6 | $opindex0 = 7) {
if (%varbit8119 = 1) {
~meslayer_mode6($string1);
} else {
mes("You must set a name before you can do that.");
}
}
} else if ($opindex0 = 6) {
if (%varbit8119 = 1) {
friend_add($string1);
} else {
mes("You must set a name before you can do that.");
}
} else if ($opindex0 = 7) {
if (%varbit8119 = 1) {
ignore_add($string1);
} else {
mes("You must set a name before you can do that.");
}
}
}