English Sound and Msg when admin join.

8 replies
Goto Page
To the start Previous 1 Next To the start
Up
Man Of Steel
User
Online On
Hello everybody,

I want a script as when a Admin/Owner Join server So play a song and a Message appear Like; "(Player) Administrator have Joined Server". Make list for add admins when join so play sound and msg.so i will write usgn & I will set sound name according my folder sound.




Thanks for attention
FRiendly boYy.
01.04.18 10:02:16 pm
Up
mrc
User
Offline Off
Hi friend, consider joinning the CS2D World community.

Code:
1
2
3
4
5
6
7
8
9
10
11
addhook("join","join_")
function join_ (id)
     if player(id, "usgn") == YOURUSGNID then
     parse("sv_msg YOURMESSAGE")
     parse("sv_sound YOURSOUNDPATH")
     elseif player(id, "usgn") == OTHERUSGNID then
     parse("sv_msg YOURMESSAGE")
     parse("sv_sound YOURSOUNDPATH")
          end
     end
end
CS2D GLOBAL Community - www.CS2DGLOBAL.tk
02.04.18 01:51:34 am
Up
ACROHAL
User
Offline Off
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
28
pl = {}
--------------------------
--------Admin Join--------
Ranks = {<usgn here>}
color = {
        [1] = "©255165000", -- Orange
          [2] = "©255255255", --White
          [3] = "©255000000", --RED
          [4] = "©255192203", --Pink
          [5] = "©255255000", --Dark Blue
          [6] = "©000000255", --Cyan
          [7] = "©000255000", --Green
          [8] = "©255153510" --Orange
}

addhook("join","adminUnjoin")
function adminUnjoin(id)
    for _, usgn in pairs (Ranks) do
     if (player(id,"usgn")==usgn) then
     pl[id] = {}
    pl[id].name = player(id,"name")
    pl[id].usgn = player(id,"usgn")
     pl[id].ip = player(id,"ip")
       parse("sv_sound abc.ogg")
     msg(color[7].."The Administrator "..color[2]..""..pl[id].name..""..color[2].." #"..pl[id].usgn..""..color[7].." Has joined!@C")
        end
    end
end
What the F.A.Q.?| zyLva okteLon ∗ faqduLLAH
02.04.18 08:18:03 pm
Up
Man Of Steel
User
Online On
Hey guys thanks for help but both scripts not working
You checked it in your server ?

I check its not working

Tell us working script

I will be very thankful for this favor


I Fill Like that,

Quote:
addhook("join","join_")
function join_ (id)
if player(id, "159747") == YOURUSGNID then
parse("Administartor join Server")
parse("sv_sound YOURSOUNDPATH")
elseif player(id, "169747") == OTHERUSGNID then
parse("Good like")
parse("sv_sound YOURSOUNDPATH")
end
end
end
edited 2×, last 02.04.18 08:33:20 pm
FRiendly boYy.
02.04.18 09:05:25 pm
Up
mrc
User
Offline Off
It doesnt work because you fill wrong.

Code:
1
2
3
4
5
6
7
addhook("join","join_")
function join_ (id)
if player(id, "usgn") == 159747 then
parse("sv_msg [ADMIN] "..player(id,"name").." has joinned the server.")
parse("sv_sound unrealsoftware.wav")
end
end
CS2D GLOBAL Community - www.CS2DGLOBAL.tk
02.04.18 10:20:46 pm
Up
Mora_rus
User
Offline Off
Keep in mind if there is cheaters on servers they could leave before you ban them bcs they'd see that message.
S.T.A.L.K.E.R. - The Lost Land dev. https://discord.gg/aABCkHQ
03.04.18 03:55:41 pm
Up
Man Of Steel
User
Online On
Dear @user mrc:, Script still doesn't work.

I don't know, maybe it will again my mistake.anyways you're good script maker.

You checked this script in your server?

I fill like that now.

More >
FRiendly boYy.
03.04.18 06:06:12 pm
Up
ACROHAL
User
Offline Off
user ACROHAL has written:
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
28
pl = {}
--------------------------
--------Admin Join--------
Ranks = {<usgn here>}
color = {
        [1] = "©255165000", -- Orange
          [2] = "©255255255", --White
          [3] = "©255000000", --RED
          [4] = "©255192203", --Pink
          [5] = "©255255000", --Dark Blue
          [6] = "©000000255", --Cyan
          [7] = "©000255000", --Green
          [8] = "©255153510" --Orange
}

addhook("join","adminUnjoin")
function adminUnjoin(id)
    for _, usgn in pairs (Ranks) do
     if (player(id,"usgn")==usgn) then
     pl[id] = {}
    pl[id].name = player(id,"name")
    pl[id].usgn = player(id,"usgn")
     pl[id].ip = player(id,"ip")
       parse("sv_sound abc.ogg")
     msg(color[7].."The Administrator "..color[2]..""..pl[id].name..""..color[2].." #"..pl[id].usgn..""..color[7].." Has joined!@C")
        end
    end
end


use this man!
What the F.A.Q.?| zyLva okteLon ∗ faqduLLAH
03.04.18 07:09:47 pm
Up
Man Of Steel
User
Online On
@user ACROHAL: Thanks its working
FRiendly boYy.
To the start Previous 1 Next To the start