1. Oxide 1.18 has been discontinued and is no longer supported. Please do not post requests for Oxide 1.18 plugins or support.
    We recommend upgrading to Oxide 2.0 as able. Plugins can be easily updated to support it as well.
  1. Ramil

    Ramil Scavenger

    How return Humancontroller to netuser

    netuser.playerClient.rootControllable
    How return netuser
     
    Last edited by a moderator: Dec 19, 2016
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    var netUser = netUser.playerClient.controllable.nextController as HumanController
     
  3. Ramil

    Ramil Scavenger

    [ChatCommand("testc")]
    void testcheat(NetUser netuser, string command, string[] args, Vector3 pos)
    {

    var netUser = netUser.playerClient.controllable.nextController as HumanController

    }


    eror
    //if (сontroller.stateFlags!=null) Puts("stateFlags " +netuser.displayName + " "); ///This cheat
    This for test. Arg for
    --- Double Post Merged, Dec 19, 2016 ---
    i want сontroller.stateFlags!=null
    if not null then not cheater
    else do ...
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Obviously that will error, as you do not have anything named "controller" defined.
     
  5. Ramil

    Ramil Scavenger

    I want netuser out сontroller
    my language ... Sorry
    --- Double Post Merged, Dec 19, 2016 ---
    for out stateFlags
     
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Change var netUser to var controller.
     
  7. Ramil

    Ramil Scavenger

    Puts("stateFlags NOOOOOOOOORRRRRRRRRRR " +netuser.displayName + " " + сontroller.stateFlags);

    [Error] Failed to call hook 'testcheat' on plugin 'RANDMMmod v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
     
  8. Ramil

    Ramil Scavenger

    Code (Text):
    [ChatCommand("testc")]
    void testcheat(NetUser netuser, string command, string[] args)
    {
    var сontroller = netuser.playerClient.controllable.nextController as HumanController;
    Character idMain = сontroller.idMain;

    Puts("stateFlags NOOOOOOOOORRRRRRRRRRR " +netuser.displayName + " " + сontroller);
    Puts("stateFlags NOOOOOOOOORRRRRRRRRRR " +netuser.displayName + " " + сontroller.stateFlags);
    //Process currentProcess = Process.GetCurrentProcess();
    }
    Code (Text):
    Z:\games\Aggressive Client\rust.exe
    C:\WINDOWS\SYSTEM32\ntdll.dll
    C:\WINDOWS\System32\KERNEL32.DLL
    C:\WINDOWS\System32\KERNELBASE.dll
    C:\WINDOWS\system32\apphelp.dll
    C:\WINDOWS\System32\WS2_32.dll
    C:\WINDOWS\System32\sechost.dll
    C:\WINDOWS\System32\RPCRT4.dll
    C:\WINDOWS\System32\SspiCli.dll
    C:\WINDOWS\SYSTEM32\HID.DLL
    C:\WINDOWS\System32\CRYPTBASE.dll
    C:\WINDOWS\System32\bcryptPrimitives.dll
    C:\WINDOWS\System32\USER32.dll
    C:\WINDOWS\System32\win32u.dll
    C:\WINDOWS\System32\GDI32.dll
    C:\WINDOWS\System32\gdi32full.dll
    C:\WINDOWS\System32\ole32.dll
    C:\WINDOWS\System32\combase.dll
    C:\WINDOWS\System32\ucrtbase.dll
    C:\WINDOWS\System32\SHLWAPI.dll
    C:\WINDOWS\System32\msvcrt.dll
    C:\WINDOWS\SYSTEM32\VERSION.dll
    C:\WINDOWS\System32\ADVAPI32.dll
    C:\WINDOWS\System32\SHELL32.dll
    C:\WINDOWS\System32\cfgmgr32.dll
    C:\WINDOWS\System32\windows.storage.dll
    C:\WINDOWS\System32\powrprof.dll
    C:\WINDOWS\System32\kernel.appcore.dll
    C:\WINDOWS\System32\shcore.dll
    C:\WINDOWS\System32\profapi.dll
    C:\WINDOWS\System32\OLEAUT32.dll
    C:\WINDOWS\System32\msvcp_win.dll
    C:\WINDOWS\System32\IMM32.dll
    C:\WINDOWS\SYSTEM32\OPENGL32.dll
    C:\WINDOWS\SYSTEM32\WINMM.dll
    C:\WINDOWS\SYSTEM32\MSACM32.dll
    C:\WINDOWS\SYSTEM32\DNSAPI.dll
    C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
    C:\WINDOWS\System32\NSI.dll
    C:\WINDOWS\SYSTEM32\WINHTTP.dll
    C:\WINDOWS\SYSTEM32\winmmbase.dll
    C:\WINDOWS\SYSTEM32\GLU32.dll
    C:\WINDOWS\SYSTEM32\DDRAW.dll
    C:\WINDOWS\SYSTEM32\DCIMAN32.dll
    Z:\games\Aggressive Client\rust_Data\Mono\mono.dll
    C:\WINDOWS\System32\PSAPI.DLL
    C:\WINDOWS\SYSTEM32\MSWSOCK.dll
    C:\WINDOWS\system32\uxtheme.dll
    C:\PROGRA~2\RAPTRI~1\Raptr\ltc_help32-116716.dll
    C:\WINDOWS\System32\WINTRUST.dll
    C:\WINDOWS\System32\MSASN1.dll
    C:\WINDOWS\System32\CRYPT32.dll
    C:\WINDOWS\System32\MSCTF.dll
    C:\WINDOWS\system32\dwmapi.dll
    C:\WINDOWS\SYSTEM32\d3d9.dll
    C:\WINDOWS\System32\DriverStore\FileRepository\c0309114.inf_amd64_9133a0f6cb9c56bb\aticfx32.dll
    C:\WINDOWS\System32\DriverStore\FileRepository\c0309114.inf_amd64_9133a0f6cb9c56bb\atiu9pag.dll
    C:\WINDOWS\System32\DriverStore\FileRepository\c0309114.inf_amd64_9133a0f6cb9c56bb\atiumdag.dll
    C:\WINDOWS\System32\DriverStore\FileRepository\c0309114.inf_amd64_9133a0f6cb9c56bb\atiumdva.dll
    C:\WINDOWS\SYSTEM32\MMDevAPI.DLL
    C:\WINDOWS\SYSTEM32\PROPSYS.dll
    C:\WINDOWS\SYSTEM32\DEVOBJ.dll
    C:\WINDOWS\SYSTEM32\wdmaud.drv
    C:\WINDOWS\SYSTEM32\ksuser.dll
    C:\WINDOWS\SYSTEM32\AVRT.dll
    C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
    C:\WINDOWS\SYSTEM32\wintypes.dll
    C:\WINDOWS\SYSTEM32\msacm32.drv
    C:\WINDOWS\SYSTEM32\midimap.dll
    C:\WINDOWS\SYSTEM32\dsound.dll
    C:\WINDOWS\System32\clbcatq.dll
    C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.14393.447_none_89c64d28dafea4b9\comctl32.dll
    C:\WINDOWS\SYSTEM32\xinput1_3.dll
    C:\WINDOWS\System32\SETUPAPI.dll
    C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL
    C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL
    C:\Windows\System32\rasadhlp.dll
    C:\WINDOWS\SYSTEM32\msadp32.acm
    C:\WINDOWS\System32\CRYPTSP.dll
    C:\WINDOWS\system32\rsaenh.dll
    C:\WINDOWS\SYSTEM32\bcrypt.dll
    C:\WINDOWS\System32\imagehlp.dll
    C:\WINDOWS\SYSTEM32\gpapi.dll
    C:\Windows\System32\cryptnet.dll
    C:\WINDOWS\SYSTEM32\WINNSI.DLL
    C:\PROGRA~2\RAPTRI~1\Raptr\ltc_game32-116716.dll
    Z:\games\Aggressive Client\rust_Data\Plugins\librust.dll
    Z:\games\Aggressive Client\steam_api.dll
    C:\WINDOWS\SYSTEM32\MSVCP120.dll
    C:\WINDOWS\SYSTEM32\MSVCR120.dll
    Z:\games\Aggressive Client\ValveAPI.dll
    Z:\games\Aggressive Client\steamclient.dll
    C:\WINDOWS\SYSTEM32\urlmon.dll
    C:\WINDOWS\SYSTEM32\WININET.dll
    C:\WINDOWS\SYSTEM32\iertutil.dll
    Z:\games\Aggressive Client\steam.dll
    C:\WINDOWS\System32\fwpuclnt.dll
    C:\Program Files (x86)\Cheat Engine 6.6\speedhack-i386.dll
    --- Double Post Merged, Dec 19, 2016 ---
    if Cheat Engine i use then stateFlags==null
    OnGetClientMove Puts stoped
     
    Last edited by a moderator: Dec 20, 2016
  9. Ramil

    Ramil Scavenger

    var chart = rust.GetCharacter( netuser );
    Puts (""+chart.stateFlags);