So, after 1 day, I went to ask my friend EnderCrypt and I sent him the files that I was sure of that was bugged
He fixed it for me, so I want you people to fix the problem too if it occurs.
-----------------------ADDHOOK2 FIX
First download addhook2 by EnderCrypt, then put it in sys/lua and dofile it with yuki's main.lua like that:
1
2
2
dofile("sys/lua/addhook2.lua") dofile("sys/lua/main.lua")
Make sure that the addhook2 is the first one. as I wrote you in the code spoiler. because addhook2 will be used to fix the yuki.hit hooks, if it worked, you'll see addhook2 and blue things in your console.
--------------------------------FIXING THE RANKS:
EDITED, I was just thinkin to get a new simple fix and here is it, I brought this one for you guys!
Note for Yuki:
Here's the fix:
ExtremeConquerer has written
If you want to use -1
then go to line 756 in saycmds.lua
it's found in yuki directory
theres a line shows you
Code:
if USGN[tgt] > 0 then
change it to
Code:
if USGN[tgt] > -1 then
It will make the idiot rank work, even if the value is below than 0
You need to use addhook2 too, follow all the steps in the thread expect the settings.lua one,
then go to line 756 in saycmds.lua
it's found in yuki directory
theres a line shows you
Code:
if USGN[tgt] > 0 then
change it to
Code:
if USGN[tgt] > -1 then
It will make the idiot rank work, even if the value is below than 0
You need to use addhook2 too, follow all the steps in the thread expect the settings.lua one,
-------------------------FIXING THE NO DMG BUG:
You must go open now sys/lua/yuki and open hooks.lua, you will have a format like this:
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
addhook("startround", "yuki.startround") addhook("buy", "yuki.buy") addhook("join", "yuki.join") addhook("hit", "yuki.hit") addhook("leave", "yuki.leave") addhook("clientdata", "yuki.cld") addhook("spawn", "yuki.spawn") addhook("attack", "yuki.attack") addhook("team", "yuki.team") addhook("say", "yuki.say") if show_sv_name then addhook("second", "yuki.sec") end if allow_kick_vote_mod then addhook("vote", "yuki.vote") end if check_player_name then addhook("name", "yuki.name") end addhook("die", "yuki.die")
change it to:
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
addhook("startround", "yuki.startround") addhook("buy", "yuki.buy") addhook("join", "yuki.join") addhook("hit", "yuki.hit") addhook("leave", "yuki.leave") addhook("clientdata", "yuki.cld") addhook("spawn", "yuki.spawn") --addhook("attack", "yuki.attack") addhook("team", "yuki.team") addhook("say", "yuki.say") if show_sv_name then addhook("second", "yuki.sec") end if allow_kick_vote_mod then addhook("vote", "yuki.vote") end if check_player_name then addhook("name", "yuki.name") end addhook("die", "yuki.die")
Thanks, that all the bugs that I have experienced with my friend EnderCrypt!
Sorry for the bad english launguage.
edited 2×, last 21.09.15 12:45:34 pm