English Some changing in Hc Admin script.

7 replies
Goto Page
To the start Previous 1 Next To the start
Up
Man Of Steel
User
Offline Off
Hi everyone,

Guys i need some help about hc admin script, i want just some changes, i did myself but failed.

I want to change tag settings, Like when we use tag so it show like that example; vmAD~ /Adm/.: Hi Everyone.

I want change " / " Into " » « "

Like when we will say message so its appears like that
example; vmAD~ »Adm« : Hi Everyone.

And Message will always show in white color even we change our chat color

help me plz
FRiendly boYy.
07.05.18 07:07:38 pm
Up
princeofpersia
User
Offline Off
@user Man Of Steel: 1_ open chat.lua
2_ find this function > function hc.chat.say_hook(p, text)
3_ now search for this line : local tag = hc.chat.SAY_TAGS[hc.get_level(p)]
4_in next round you can change tag place

replace that line whit this : title = title .. " \169255255255»" .. tag .. "«"
(this show tag with Withe color )

and done . Good Luck
07.05.18 08:15:29 pm
Up
Man Of Steel
User
Offline Off
Thanks Prince of Persia but its not working
And console shows that message.

https://imgur.com/a/pElS3iw

Even when i did, And Press F2 for open my tag for demo, the option of config Removed & I can't.

Please help me and check Image.
FRiendly boYy.
07.05.18 08:40:53 pm
Up
Fraizeraust
Moderator
Offline Off
The first error means the Lua file is saved in a wrong encode type. Make sure the file is saved as ANSI. As for the second one, did you put an extra
end
block in the code by any means? Could you please show it?
07.05.18 08:46:42 pm
Up
Man Of Steel
User
Offline Off
I Only Did same as Prince said and nothing change.
FRiendly boYy.
08.05.18 08:49:38 am
Up
Gaios
Security Supporter
Offline Off
09.05.18 12:22:21 am
Up
ACROHAL
User
Offline Off
change this in sys/lua/hc/modules/chat.lua
Code:
1
line: 154 aprox


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
29
30
31
32
33
34
35
36
37
hc.chat.check_for_smileys(p, text)

    if hc.is_vip(p) then
        local colour_name = hc.get_player_property(p, hc.chat.COLOUR_PROP_NAME)
        local colour

        if colour_name then
            colour = hc.chat.COLOURS[colour_name]
            if colour and type(colour) == "table" then
                colour = colour[team]
            elseif not colour or colour == "nil" then
                return 0
            end
        else
            return 0
        end

        local title = colour .. player(p, "name")

        local show_tag = hc.get_player_property(p, hc.chat.TAG_PROP_NAME)

        if show_tag == nil or show_tag == hc.chat.ON then
            local tag = hc.chat.SAY_TAGS[hc.get_level(p)]
            title = title .. " » " .. tag .. " «"
        end

        text = hc.strip_end(text, "[©@]C", 2)

        if player(p, "health") == 0 then
            msg(title .. " *DEAD*: " .. text)
        else
            msg(title .. ": " .. text)
        end
        return 1
    end
    return 0
end
What the F.A.Q.?| zyLva okteLon ∗
09.05.18 04:23:34 am
Up
Man Of Steel
User
Offline Off
Guy thanks a lot but please give chat.lua full file because in my file its written in horizontal method i can't change it with specific line.
FRiendly boYy.
To the start Previous 1 Next To the start