Forum

> > CS2D > Scripts > Sound and Msg when admin join.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Sound and Msg when admin join.

8 replies
To the start Previous 1 Next To the start

old Sound and Msg when admin join.

Man Of Steel
User Off Offline

Quote
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

old Re: Sound and Msg when admin join.

mrc
User Playing CS2D

Quote
Hi friend, consider joinning the CS2D World community.

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

old Re: Sound and Msg when admin join.

jerezinho
User Off Offline

Quote
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

old Not working-

Man Of Steel
User Off Offline

Quote
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

old Re: Sound and Msg when admin join.

mrc
User Playing CS2D

Quote
It doesnt work because you fill wrong.

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

old still now proper work

Man Of Steel
User Off Offline

Quote
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 >

old Re: Sound and Msg when admin join.

jerezinho
User Off Offline

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