Hello, i would like to do this for your, for 15$ as you stated, here is what i have did:
in file kz_core.sma there is a function called when player use /tp, /gc. also kz_menu.sma has option to use /tp from menu, but its calling cmd_Gocheck( id ) so this is the most important part of the code, what is exactly changed:
line 104, added:
Code:
new g_hResetBugForward;
line 115, added (this is where kz_core and Kpoluk's jumpstats would "connect"), in plugin_init():
Code:
g_hResetBugForward = CreateMultiForward("fwResetBug", ET_IGNORE, FP_CELL);
line ~517, in 'public cmd_Gocheck(id)' -> in that moment we call reset function by Kpoluk's original code:
Code:
new iReturn;
ExecuteForward(g_hResetBugForward, iReturn, id);
line ~606, just to be sure all is ok, i added protection to: public cmd_Start(id), because it is also a teleport:
Code:
new iReturn;
ExecuteForward(g_hResetBugForward, iReturn, id);
line ~1016, as Kpoluk suggested plugin_end:
Code:
public plugin_end()
{
DestroyForward(g_hResetBugForward);
}
*ps* Stuck fucntion is also teleport but its calling cmd_Gocheck which means code is already implemented
I did not test but you tell me if something is not right, im willing to fix until its 100% working.
Hopefully you wont scam me LOL...
Also kz_core.sma attached so you dont need to add any code, just test on your server