InfiniteAmmo

Moved

Total Downloads: 4,448 - First Release: May 30, 2015 - Last Update: Jul 19, 2015

4.38889/5, 18 likes
  1. Your Steamid is nothing private or something, people can simply get it and its not really used to hack accounts, and also if somebody would try to hack your account they would not need the steamid from this post
     
  2. just being paranoid i guess
     
  3. Loaded plugin, gave admin group permission, still loose ammo. Any suggestions as to what im doing wrong? Thanks.
     
  4. Used the command?
     
  5. If you mean oxide.grant group "admin" "infinite.ammo" - yes, ran the command.
     
  6. /toggleammo
    Was added in an update, seems that I didn't update the overview with that change, sorry.
     
  7. That was the problem. Thanks!
     
  8. You have a duplicate InfiniteAmmoPlayer function in class InfiniteAmmoPlayer.

    Code:
    class InfiniteAmmoPlayer
            {
                public string UserId;            public InfiniteAmmoPlayer()
                {
                }            public InfiniteAmmoPlayer(BasePlayer player)
                {
                    UserId = player.userID.ToString();
                }
                public ulong GetUserId()
                {
                    ulong user_id;
                    return !ulong.TryParse(UserId, out user_id) ? 0 : user_id;
                }
            }
     
  9. one is a class one is the function, its alright
     
  10. Interesting, thanks for the info!
     
  11. i have use in F1. oxide.grant user "steam id" "infinite.ammo" its working good.
    But if i have give it to a wrong player .
    with what command can you disable infiniti ammo ?
     
    Last edited by a moderator: Jul 12, 2015
  12. oxide.revoke user steamid infinite.ammo
     
  13. insane8472 Thanks for your info ;D
    sorry is not working . oxide.revoke user steamid infinite.ammo
    even after kick from server . ?
     
    Last edited by a moderator: Jul 15, 2015
  14. This doesn't work for me. I added permission correctly (double checked) and the gun still no unlimited ammo.
     
  15. Wulf

    Wulf Community Admin

    Did you check your logs for errors? Did you verify the permission was added in oxide.users.json?
     
  16. Yes. I've got the perm in oxide.users.json. I added the plugin and even relogged and still didn't work. Also no console errors at all apart from telling me its loaded when i first put it in.
     
  17. Wulf

    Wulf Community Admin

    So how is it not working for you? It won't change the ammo count, you'll still have to reload as well.
     
  18. In oxide/data / infinite.ammo.json
    i have removed the user steam id.
    and that works. ;D
     
  19. Code:
    [Oxide] 10:28 AM [Error] InfiniteAmmo plugin failed to compile!
    [Oxide] 10:28 AM [Error] InfiniteAmmo.cs(144,33): error CS1061: Type `BasePlayer' does not contain a definition for `svActiveItem' and no extension method `svActiveItem' of type `BasePlayer' could be found. Are you missing an assembly reference?