1. Code:
    /76561200082745946/Ugly Fuck disconnecting: Invalid Raknet Packet 46
    /76561200445525877/OwnProx disconnecting: Invalid Packet (51) 25b
    /76561199952191901/Player77788423958162 disconnecting: Invalid Packet (51) 25b
    /76561198083123737/PayneKillerâ„¢ disconnecting: Invalid Packet (51) 25b
    /76561200191290422/Ivek disconnecting: Invalid Packet (51) 25b
    anyone else experiencing this every 2 hours or so ? could this be down to the clan scrip thats public ? if so ill make one because the ppl who dced where in my clan but its only rare, and 7 remained online when it happend
     
    Last edited by a moderator: Jul 14, 2015
  2. Wulf

    Wulf Community Admin

    Have you tested without your GUI plugins?
     
  3. the thing is im sure i had this before then really randomly and the fact it only dced my clan members is weird, and my gui only updates on a player logging in or out and that dint happend we all just got dced and noone logged out or in for atleast 10 mins prior to it but i will dig deeper see what i come up with my best guess is the clan script due to only my clan members getting dced and me at that exact moment out of 12 online 5 of us got dced who all happend to be in the same clan so idk but i did first think it was the gui,

    thanks for the advice, i guess i can wait to see if other people experience this with the plugin but i highly dout its that


    also while your around i found a function and hooked it is it possible to get it released in oxide public so i can release a plugin due to people brute forcing players codelocks with some sort of network modifications sending 100s of codes a second or so i can tell you the function name but i haven't finished testing yet so i don't know if its required just wondering if its possible to get it published in oxide's update

    heres the function that im using the patcher to patch in oxide
    Code:
    private void UnlockWithCode(BaseEntity.RPCMessage rpc)
    {
        if (Interface.CallHook("OnUnlockWithCode", new object[]
        {
            rpc
        }) != null)
        {
            return;
        }
        string a = rpc.read.String();
        if (!base.IsLocked())
        {
            return;
        }
        if (a != this.code)
        {
            this.DoEffect(this.effectDenied);
            rpc.player.Hurt(1f, DamageType.ElectricShock, this, true);
            return;
        }
    
    also on this note just wondering if there's a way i can move my hook under the if (a != this.code)
     
  4. Move the injection index down.
     
  5. thanks mate dint think of that.
    [DOUBLEPOST=1436906316,1436841873][/DOUBLEPOST]is it possible to hook a function in 2 different places ? from what i can see its not, this would be very handy to have
     
  6. Wulf

    Wulf Community Admin

    Yes, there are 3 or 4 existing hooks that do this.
     
  7. Wulf

    Wulf Community Admin

  8. Legend thanks.

    and yeah i can confirm that the dc issue was to do with players online gui i made a public update i think it was a issue sending the gui to the player that just logged out because when the ondisconnect is called the player is still in activePlayerList so i just did a simple filter hopefully it fix's it.