Here is the news cmd file News-message script (32) , i hope you can do it for me , and also i want to remove the news sound ..
Forum
CS2D Scripts Add news cmd in hc admin scriptAdd news cmd in hc admin script
7 Antworten 1
Here is the news cmd file News-message script (32) , i hope you can do it for me , and also i want to remove the news sound ..
Anyway ,you can do it by copying the code and putting it inside the script not hard.
1
2
3
4
5
6
2
3
4
5
6
-- Put this one inside "function hc.moderation.init()", moderation.lua hc.add_say_command("news", hc.moderation.news_say_command, hc.MODERATOR2, "[<message>]", "Displays a news") -- Then put this one right under that function function hc.moderation.news_say_command(p, arg) addNews(arg) end
@ THEMUD: You never think about it .
@ Kirito2K: Editing hc adm script is a bit complex case.anyway i will try it for u.
1
hc.add_say_command("news", hc.moderation.news_say_command, hc.MODERATOR2, "<message>", "Displays a news")
Example : i opened a server and wrote "LOOOOL" The news bar just wrote "LOOOL" . I hope you understand meh .
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
function News.Load_Tlex() if not v_TLex_path then addhook("say","News.Say",1) local tab = {} for k,v in pairs(News.Admin_List) do tab[tostring(v)] = true end News.Admin_List = tab else t_commands["news"] = {"@","news",News.Tlex_Rank,News.Delay,99,1,"News.Counter==0","Error: You can't use this command at the moment.","News.Main('@news '..v_argsall) News.Counter = News.Delay","@news <message>",1} end end timer(100,"News.Load_Tlex")
1× editiert, zuletzt 23.12.14 17:46:44
1