HeliControl

Moved

Total Downloads: 35,361 - First Release: Sep 18, 2015 - Last Update: Apr 19, 2018

5/5, 74 likes
  1. Code:
    "CallHeliEverySeconds": 0.0,
    
    Change the 0.0 to however often you want to call it in seconds.

    You can also change the "DisableDefaultHeliSpawns" to true, if you don't want Rust to spawn any Helicopters on it's own, just letting the plugin do it.
     
  2. So if I set the "DisableDefaultHeliSpawns" to true and set the cooldown to 7200, then will it only spawn a chopper every 2 hours?
     
  3. It should, yes.
     
  4. Thank you very much for the help, just the plugin I have been looking for. If you could maybe introduce an update which makes it so you can set a minimum amount of players that need to be online before the heli spawns then it would be amazing.

    Other than that I love this plugin, thank you again.
     
  5. what about this problem?

    (13:08:50) | [Oxide] 16:09 [Error] HeliControl.cs(319,29): error CS1525: Unexpected symbol `end-of-file'
     
  6. It seems you've modified something in the .cs file itself, or it has somehow otherwise become corrupt. Redownload the plugin and replace it with the one you're currently attempting to use.
     
  7. FTM

    FTM

    I can't figure out how to get player cooldowns working, they are assigned to the cooldown.1 but it doesn't do anything
     
    Last edited by a moderator: Sep 24, 2016
  8. Did you grant the helicontrol.callheliself or helicontrol.callhelitarget permission? If you didn't, they can only call it in general, not on any specific target.

    If it's still not working, does it show a message, or is it just blank/not working?
     
  9. FTM

    FTM

    Yes. I basically want players to only be able to use /callheli playername and have a 1hr cooldown on it.

    No errors, just doesn't work, players can call in multiple heli's immediately.

    Also, the call to target doesn't work at all unless they have the /callheli granted also...
     
  10. I am working with FTM on this. We are currently trying to set a cooldown of 1 hours by changing the Cooldown.5 in the .json file to 3600.0 and then by typing "grant user elderly helicontrol.cooldown.5" in console. there is no error when typing this, but it does not prevent me from calling multiple helicopters with no cooldown.

    edit: also, i have callheli and callhelitarget permissions.
     
  11. Remove the callheli permission. You only need callhelitarget or callheliself if you're using cooldown, otherwise, the callheli permissions allows full calling to anyone/anywhere. I'm pretty sure this is what's causing your issues. Apologies for it not being more clear, the overview needs to be updated and I'm going to do it right away.


    EDIT: Just saw FTM's post. If you're not able to get it to work without granting callheli, there must be an issue. Let me know.
     
  12. If we revoke the callheli permission and only grant me callhelitarget, i am given the message "you do not have permission to use this command!" when trying to call in a heli on a target via the chat command /callheli "playername"
     
  13. I just tested it and it's still working fine for me. When you grant the permission and run the command, make sure there are no errors in the console.

    Furthermore, make sure you haven't accidentally granted a cooldown that is set to '0', if it's set to 0 it will probably not work at all.
     
  14. FTM

    FTM

    There's no cooldowns set to 0

    All that is assigned is helicontrol.callhelitarget and that says "You do not have permissions to use this command"
     
  15. Can you run the command in your console/RCON:

    Code:
    oxide.show user YourUserName 
    And of course, replace YourUserName with your name, but keep the 'user' part before it. After you've typed that, can you paste the contents of it here? I'd like to know what permissions you have exactly, as to make sure something isn't messed up here.
     
  16. The cooldown we have edited in the .json file is Cooldown.5, which was changed to 3600.0

    edit: ignore this, didn't see your reply ^
     
  17. FTM

    FTM

    User 'Elderly John Stamos (76561198300192002)' permissions:
    helicontrol.callheliself, helicontrol.update, helicontrol.destination, helicontrol.callhelitarget, helicontrol.cooldown.5, betterchat.group.default, wellfed.onlogin, wellfed.onspawn, autogrades.all, automaticauthorization.use
    User 'Elderly John Stamos (76561198300192002)' groups:
    default
     
  18. Can you try granting yourself a limit permission just to see if it fixes the issue? Your permissions look fine, so at this point I'm kinda confused as to what the issue may be.

    Also, just to confirm, you are on the latest version of the plugin, yes?
     
  19. So adding in a limit permission made the cooldown work. I have no idea why, but thanks a lot for your help!
     
  20. No problem, thanks for confirming my suspicion on the issue. I'll try to figure it out. Since you didn't say for sure, I'll mention it again; you may want to make sure you're on the latest version.

    Regardless, I'll take a look into this a bit further, and if I can confirm and fix the issue on my end, I'll release an update to fix it. Thanks. ;)