Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Clan tag
24 Antworten1
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
![user](img/i_friend.png)
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
![user](img/i_friend.png)
Yeah, but when I press on it doesn't do anything.
Press F2 and it will open a menu.
![](img/smiles/sick.gif)
![user](img/i_friend.png)
Yeah. Is that hard? ![](img/smiles/sick.gif)
![](img/smiles/sick.gif)
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
![](img/smiles/xlaugh.gif)
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.
![cookie](img/cookie.gif)
dont run any other scripts!
pm me the admin script you were using.
![ADDED](img/clog_added.png)
2× editiert, zuletzt 09.09.12 15:12:31