English Show rank in the join message

4 replies
Goto Page
To the start Previous 1 Next To the start
18.03.19 03:04:31 pm
Up
phalenkO
User
Offline Off
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
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
18.03.19 09:30:49 pm
Up
abderahimJR
User
Offline Off
how can i see my rank in game ?
the best
18.03.19 10:04:51 pm
Up
Goo
User
Offline Off
@user abderahimJR:
Say
rank
in the chat...?

Consider enabling show full rank info in
options>more
too...

@user phalenkO:
What exactly is your problem?
You want the
sv_msg
to show if the player is an Admin or VIP upon joining?
18.03.19 10:34:04 pm
Up
Rainoth
Moderator
Offline Off
Code:
1
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
20.03.19 08:44:33 pm
Up
phalenkO
User
Offline Off
@user Rainoth: @user Goo: Thx
To the start Previous 1 Next To the start