Forum

> > CS2D > Scripts > Some changing in Hc Admin script.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Some changing in Hc Admin script.

7 replies
To the start Previous 1 Next To the start

old Some changing in Hc Admin script.

Man Of Steel
User Off Offline

Quote
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

old Chat.lua

princeofpersia
User Off Offline

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

old Problem,

Man Of Steel
User Off Offline

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

old Re: Some changing in Hc Admin script.

GeoB99
Moderator Off Offline

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

old Re: Some changing in Hc Admin script.

jerezinho
User Off Offline

Quote
change this in sys/lua/hc/modules/chat.lua
1
line: 154 aprox

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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview