Forum

> > CS2D > Scripts > Bug say for all
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Bug say for all

12 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Bug say for all

Pamoon
User Off Offline

Zitieren
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

alt Re: Bug say for all

DC
Admin Off Offline

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

alt Re: Bug say for all

Bleach
User Off Offline

Zitieren
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

alt Re: Bug say for all

Rainoth
Moderator Off Offline

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

alt Re: Bug say for all

NeverLast
User Off Offline

Zitieren
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

alt Re: Bug say for all

MikuAuahDark
User Off Offline

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

To fix it
user DC hat geschrieben
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht