1. how to specify overcharging weapons?

    Code:
    if "weapon reload"
     
  2. Calytic

    Calytic Community Admin Community Mod

    I'm not sure what "overcharging" means

    but you can check if your gun has full ammo relatively easily..

    Code:
    var weapon = item.GetHeldEntity() as BaseProjectile;
    if(weapon.primaryMagazine.contents == weapon.primaryMagazine.capacity) {
         // WEAPON HAS A FULL CLIP
    }
     
  3. I need to check when a person presses the R key and reloads his weapon
     
  4. Calytic

    Calytic Community Admin Community Mod

    I see

    My suggestion would be to use HotKeys, or implement your own bind

    HotKeys for Rust | Oxide

    then in console as admin..

    Code:
    hotkey.bind r "+reload;mycustomcommand"
    then in your plugin..

    Code:
    [ConsoleCommand("mycustomcommand")]
    void cmdMyCustomCommand(ConsoleSystem.Arg arg)
    {
        //DO SOMETHING HERE
    }
     
  5. No. I need procedure reload gun...