Zone Command

Executes the commands when a player is entering a zone

Total Downloads: 1,112 - First Release: Jul 22, 2015 - Last Update: Mar 17, 2017

5/5, 6 likes
  1. deer_SWAG submitted a new resource:

    Zone Command - Executes commands when player is entering a zone

    Read more about this resource...
     
  2. Wow thanks ! Good job !
     
  3. deer_SWAG updated Zone Command with a new update entry:

    Fixes

     
  4. Is there a way of sending a message or executing a command using the player who entered the zone as a variable?
     
  5. You mean send message to player that entered the zone? ZonesManager already can do it.
     
  6. good job :)
     
  7. When ever i try to set a command for my arena i just get this
    /zcmd add <zoneID> <command>
    /zcmd remove <zoneID>
    /zcmd list

    I've used zone manager to create the zone
    I'm typing this, Can you see any problem with it?
    /zcmd add arena event.start
     
  8. You need to add zone id, not zone name. Enter /zone_list and you will see numbers — it's ids of zones.
    [DOUBLEPOST=1437688089][/DOUBLEPOST]Like /zcmd add 1234567890 event.start
     
  9. deer_SWAG updated Zone Command with a new update entry:

    0.0.12

     
  10. Sorry for delay a new features, but I'm tired.
    Hope that I'll implement new functional on this week.
     
  11. deer_SWAG updated Zone Command with a new update entry:

    0.0.14

     
  12. deer_SWAG updated Zone Command with a new update entry:

    0.0.15

     
  13. deer_SWAG updated Zone Command with a new update entry:

    0.0.16

     
  14. deer_SWAG updated Zone Command with a new update entry:

    0.0.18

     
  15. Hey deer_SWAG,

    i am trying your ZoneCommand PLG at the moment, but it is not realy working. The players do not get the stuff on entry the zone. Their ID is added to the list, but thats it.
    I tried to modify the stuff a bit but it does not work. First i used Kits in authlevel 2 to give it to a player by command, but that was working only for me.
    Now i tried to give the items individually, but still, nothing.

    Here is my Config file. Maybe you see, what is wrong, or why it is not working. As well, after unloading, modifiying and loading the plugin (on enter the zone), i got an error message in the console:

    Code:
    [8/17/2015 5:32:30 PM] [Oxide] 5:32 PM [Error] Failed to call hook 'OnEnterZone' on plugin 'Zone Command' (InvalidOperationException: HashSet have been modified while it was iterated over)
    Code:
    {
      "Zones": [
        {
          "ID": "towerreward",
          "Method": 2,
          "Executed": false,
          "Commands": [
            "say You have finished the tower! Well done $player.name! Here your Gift!",
            "inv.giveplayer $player.name ammo_pistol_fire 450",
            "inv.giveplayer $player.name smg_thompson 1",
            "inv.giveplayer $player.name pistol_semiauto 1",
            "inv.giveplayer $player.name pickaxe 1",
            "inv.giveplayer $player.name hatchet 1",
            "inv.giveplayer $player.name box_wooden_large BP 1"
          ],
          "Players": [
            76561199928310673,
            76561199584086966,
            76561201654297765,
            76561200424875614,
            76561200933249873,
            76561202240533068
          ]
        },
        {
          "ID": "labyrinthreward",
          "Method": 2,
          "Executed": false,
          "Commands": [
            "say You have finished the Labyrinth! Well Done $player.name! Here your Reward!",
            "inv.giveplayer $player.name kit labyrinth"
          ],
          "Players": [
            76561202240533068,
            76561202120982650,
            76561201654297765,
            76561199138805128
          ]
        }
      ]
    }
    Code:
    {
      "ZoneDefinitions": [
        {
          "name": "towerreward",
          "radius": "3",
          "Location": {
            "x": "632.5834",
            "y": "96.00363",
            "z": "-2438.745",
            "r": "3"
          },
          "ID": "towerreward",
          "autolights": null,
          "eject": null,
          "pvpgod": null,
          "pvegod": null,
          "sleepgod": null,
          "undestr": null,
          "nobuild": null,
          "notp": null,
          "nochat": null,
          "nogather": null,
          "nopve": null,
          "nowounded": null,
          "nodecay": null,
          "nodeploy": null,
          "nokits": null,
          "noboxloot": null,
          "noplayerloot": null,
          "nocorpse": null,
          "nosuicide": null,
          "noremove": null,
          "killsleepers": null,
          "radiation": null,
          "enter_message": null,
          "leave_message": null
        },

    I hope you can help me. Thanks in advance.
     
  16. Try this
     

    Attached Files:

  17. deer_SWAG updated Zone Command with a new update entry:

    0.0.19

     
  18. Should i try the attached file or the new update you just posted?
    [DOUBLEPOST=1439844796][/DOUBLEPOST]Hey deer_SWAG,

    now it is working and giving out the "say message" but when it should give the items, it is not working, because the users do not have the permissions to give items to themself. I think the commands specially the inv.giveplayer, should be run as console and not as the user who enters the zone.

    Here the log i got from someone entering the zone:

    This is the User:
    Code:
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: global.say
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: inv.giveplayer
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: inv.giveplayer
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: inv.giveplayer
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: inv.giveplayer
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: inv.giveplayer
    [8/17/2015 10:49:25 PM] [Oxide] 10:49 PM [Info] [Logger] Unflappable ran console command: inv.giveplayer
    That is me:
    Code:
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: global.say
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: inv.giveplayer
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Give] GIVE: cyripton used inv.giveplayer cyripton ammo_pistol_fire 450
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: inv.giveplayer
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Give] GIVE: cyripton used inv.giveplayer cyripton smg_thompson 1
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: inv.giveplayer
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Give] GIVE: cyripton used inv.giveplayer cyripton pistol_semiauto 1
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: inv.giveplayer
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Give] GIVE: cyripton used inv.giveplayer cyripton pickaxe 1
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: inv.giveplayer
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Give] GIVE: cyripton used inv.giveplayer cyripton hatchet 1
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Logger] cyripton ran console command: inv.giveplayer
    [8/17/2015 10:38:29 PM] [Oxide] 10:38 PM [Info] [Give] GIVE: cyripton used inv.giveplayer cyripton box_wooden_large BP 1
    [DOUBLEPOST=1439844835][/DOUBLEPOST]PPS: The say message was also only displayed when i jumped in ...
     
    Last edited by a moderator: Aug 17, 2015
  19. deer_SWAG updated Zone Command with a new update entry:

    0.0.21


    [DOUBLEPOST=1439852649][/DOUBLEPOST]
    Fixed. Download the last update. If it's not going to work... then.. I don't know. My PC just has been broke two days ago and it's hard to test plugins only with notebook.
    I think it's not my mistake.
     
    Last edited by a moderator: Aug 18, 2015
  20. so its based on the players authlvl then