Show rank in the join message
4 replies



18.03.19 03:04:31 pm
You ready for burn brain
It could be ridiculous, but I couldnt of anything else. If youre surprised, ask about LUA


Code:
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
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
admin = {142925}
vip = {}
level = {}
addhook("join","j")
function lvl(id) then
for _, usgn in ipairs(admin) do
level = 1
return 1
for _, usgn in ipairs(mod) do
level = 2
return 1
else
sv_msg(""..player(id,"name").." giris yapti. Rütbe: YOK") ---Welcome to Server "player" as. Rütbe same Rank
end
end
end
function lvls(id)
1 = ["Admin"],
2 = ["VIP"]
end
function j(id)
sv_msg(""..player(id,"name").." giris yapti. Rutbe: "..level[ ].."")
end
vip = {}
level = {}
addhook("join","j")
function lvl(id) then
for _, usgn in ipairs(admin) do
level = 1
return 1
for _, usgn in ipairs(mod) do
level = 2
return 1
else
sv_msg(""..player(id,"name").." giris yapti. Rütbe: YOK") ---Welcome to Server "player" as. Rütbe same Rank
end
end
end
function lvls(id)
1 = ["Admin"],
2 = ["VIP"]
end
function j(id)
sv_msg(""..player(id,"name").." giris yapti. Rutbe: "..level[ ].."")
end
@
abderahimJR:
Say
Consider enabling show full rank info in
@
phalenkO:
What exactly is your problem?
You want the

Say
rank
in the chat...?Consider enabling show full rank info in
options>more
too...@

What exactly is your problem?
You want the
sv_msg
to show if the player is an Admin or VIP upon joining? Code:
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
users = {
[1] = "VIP",
[142925] = "Admin",
}
addhook("join","_join")
function _join(id)
if users[player(id,"usgn")] then
msg("Welcome to the server "..player(id,"name").." as "..users[player(id,"usgn")].."!")
end
end
[1] = "VIP",
[142925] = "Admin",
}
addhook("join","_join")
function _join(id)
if users[player(id,"usgn")] then
msg("Welcome to the server "..player(id,"name").." as "..users[player(id,"usgn")].."!")
end
end



