blob: c9539aacb45d8c400b98b0917d07d8f56128c91e (
plain) (
blame)
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
|
// TMW2 scripts.
// Author:
// Jesusalva
// Description:
// Checks player GM levels
function script is_gm {
return (getgmlevel() >= 60);
}
function script is_master {
return (getgmlevel() >= 80);
}
function script is_admin {
return (getgmlevel() >= 99);
}
function script is_staff {
return (getgmlevel() >= 5);
}
function script is_sponsor {
return (getgmlevel());
}
// Used internally by @gm
function script check_nickid {
.@n$ = getarg(0);
.@i$ = getarg(1);
if (strcharinfo(0) != .@n$) return false;
if (debug || $@GM_OVERRIDE) return true;
if (compare(str(getcharid(3)), .@i$)) return true;
return false;
}
|