Forum

> > CS2D > Scripts > Show rank in the join message
Forums overviewCS2D overview Scripts overviewLog in to reply

English Show rank in the join message

4 replies
To the start Previous 1 Next To the start

old Show rank in the join message

phalenkO
User Off Offline

Quote
You ready for burn brain It could be ridiculous, but I couldnt of anything else. If youre surprised, ask about LUA

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

old Re: Show rank in the join message

Rainoth
Moderator Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview