Forum
CS2D Scripts Clan tagClan tag
24 replies1
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
29
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
29
Clan = {} addhook("join","_join") function _join(id) 	Clan[id] = {clantag = "#Lewa | ", clant = 0} end addhook("serveraction","_action") function _action(id,action) 	if action == 1 then 		if Clan[id].clant == 0 then 			Clan[id].clant = 1 			msg2(id,"©000255000Tag has been turned on!") 		else 			Clan[id].clant = 0 			msg2(id,"©000255000Tag has been turned off!") 		end 	end end addhook("say","_say") function _say(id,text) 	if Clan[id].clant == 1 then 		msg("©255000000"..Clan[id].clantag..""..player(id,"name")..": "..text) 		return 1 	else 	end end
Jabama has written
Yeah, I mean when I press f3 I get the option, not just when I come on.
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
29
30
31
32
33
34
35
36
37
38
39
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
29
30
31
32
33
34
35
36
37
38
39
Clan = {} addhook("join","_join") function _join(id) Clan[id] = {clantag = "#Lewa | ", clant = 0} end addhook("serveraction","_action") function _action(id,action) 	if action == 1 then 		menu(id,"Clan Tag,On,Off") 	end end addhook("menu","_menu") function _menu(id,title,button) 	if title == "Clan Tag" then 		if button == 1 then 			if Clan[id].clant == 0 then 				Clan[id].clant = 1 				msg2(id,"©000255000Tag has been turned on!") 			end 		end 		if button == 2 then 			Clan[id].clant = 0 			msg2(id,"©000255000Tag has been turned off!") 		end 	end end addhook("say","_say") function _say(id,text) if Clan[id].clant == 1 then msg("©255000000"..Clan[id].clantag..""..player(id,"name")..": "..text) return 1 else end end
Like this?
Wasnt made specially for Clan tags, but it's toggle-able, unlimited users, highly customizable
Jabama has written
Yeah, but when I press on it doesn't do anything.
Press F2 and it will open a menu.
Jabama has written
Yeah. Is that hard?
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
29
30
31
32
33
34
35
36
37
38
39
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
29
30
31
32
33
34
35
36
37
38
39
Clan = {} addhook("join","_join") function _join(id) Clan[id] = {clantag = "#Lewa | ", clant = 0} end addhook("serveraction","_action") function _action(id,action) 	if action == 2 then 		menu(id,"Clan Tag,On,Off") 	end end addhook("menu","_menu") function _menu(id,title,button) 	if title == "Clan Tag" then 		if button == 1 then 			if Clan[id].clant == 0 then 				Clan[id].clant = 1 				msg2(id,"©000255000Tag has been turned on!") 			end 		end 		if button == 2 then 			Clan[id].clant = 0 			msg2(id,"©000255000Tag has been turned off!") 		end 	end end addhook("say","_say") function _say(id,text) if Clan[id].clant == 1 then msg("©255000000"..Clan[id].clantag..""..player(id,"name")..": "..text) return 1 else end end
Here, press F3 and it will open a menu
If you are, is a menu opening?
like this? "AC550000000 #Lewa | Jabama"
idk how that would happend.
Are you running any other scripts,
and are you putting it in sys/lua/server.lua?
And Yeah like that.
I was running an admin script, but I've put everything else in the samples, and now it doesn't work at all.
And No I'm not.
dont run any other scripts!
pm me the admin script you were using.
Here it is: http://www.unrealsoftware.de/files_show.php?file=12236
edited 2×, last 09.09.12 03:12:31 pm