Forum

> > CS2D > Scripts > Bug say for all
Forums overviewCS2D overview Scripts overviewLog in to reply

English Bug say for all

12 replies
To the start Previous 1 Next To the start

old Bug say for all

Pamoon
User Off Offline

Quote
Hi guys again, there is a problem of my level script...
1
2
3
4
5
addhook("say","saylv")
function saylv(id,txt)
msg(""..player(id,"name").." [Lv "..lvm[id_t1].."]: ©255220000"..txt)
return 1
end
Please help. No admin (usgn)! CT,T and all can chats...
IMG:https://upimage.us/server/php/files/3%20%2813%29.PNG

old Re: Bug say for all

DC
Admin Off Offline

Quote
Either combine all say-stuff in one single function which you add to the say-hook or use the priority-parameter of cs2d lua cmd addhook to prioritize the function which uses return.

old Re: Bug say for all

Bleach
User Off Offline

Quote
If you do not use other sayhooks try it
1
2
3
4
5
addhook("say","saylv")
function saylv(id,txt)
    msg(player(id,"name").." [Lv "..lvm[id_t1].."]: ©255220000"..txt)
    return 1
end

old Re: Bug say for all

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
addhook("say","saylv",420)
function saylv(id,txt)
    msg(player(id,"name").." [Lv "..lvm[id_t1].."]: ©255220000"..txt)
    return 1
end

Try this.

old Re: Bug say for all

NeverLast
User Off Offline

Quote
1
2
3
4
5
addhook("say","saylv",420)
function saylv(id,txt)
    msg(player(id,"name") .. " [Lv " .. lvm[id_t1] .. "]: ©255220000" .. txt)
    return 1
end

old Re: Bug say for all

MikuAuahDark
User Off Offline

Quote
No matter which code you're using, it always same, buggy.
Actually, your problem is
user Alistaire has written
You have multiple sayhooks.

To fix it
user DC has written
Either combine all say-stuff in one single function which you add to the say-hook or use the priority-parameter of cs2d lua cmd addhook to prioritize the function which uses return.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview