-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,script553].cs2
37 lines (37 loc) · 1.08 KB
/
[proc,script553].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
// 553
[proc,script553]()(int)
def_int $mesuid0 = -1;
def_int $int1 = -1;
def_string $string0 = "";
def_string $string1 = "";
def_string $string2 = "";
def_int $mesuid2 = -1;
def_int $int3 = ^min_32bit_int;
def_int $int4 = ^min_32bit_int;
def_int $chattype5 = ^chattype_gamemessage;
def_int $int6 = 0;
def_string $string3 = "";
def_int $int7 = 0;
while ($chattype5 <= 110) {
if (chat_gethistorylength($chattype5) > 0) {
$mesuid0, $int1, $string0, $string1, $string2, $int6, $string3, $int7 = chat_gethistoryex_bytypeandline($chattype5, 0);
if ($int1 > $int3 | $mesuid0 > $mesuid2) {
$int3 = $int1;
$mesuid2 = $mesuid0;
}
switch_int ($chattype5) {
case ^chattype_privatechat, ^chattype_privatechatout, ^chattype_modprivatechat :
if ($int1 > $int4) {
$int4 = $int1;
%varcstring356 = removetags($string0);
}
case ^chattype_broadcast :
if ($mesuid0 ! -1 & $int1 >= %varcint202 & $int1 > calc(clientclock - 3000)) {
%varcint55 = $int1;
if_setontimer("script664(false)", interface_162:0);
}
}
}
$chattype5 = calc($chattype5 + 1);
}
return($mesuid2);