vehicle-events

#15 - published 2 years ago

Vehicle Events

Vehicle Events

Description:

This plugin will spawn a vehicle somewhere on the map and notify players. Choose what vehicles you want, and most importantly, the color of the message (I know, my jaw dropped too). If you want new features, just put them in the comments and I shall implement them (If they are feasible).

Despawning:

The despawn mechanic works like so. If the vehicle has been moved away from its spawn or is locked (depends if the option is enabled or no) or has someone in it, it will NOT despawn. If the vehicle remains in the area and it is not locked (again depending on if it’s enabled or not) and has no one in it, once the despawn timer hits 0, the vehicle will despawn.
Vehicles will also despawn if the plugin is unloaded to prevent vehicles being left at spawns after restarts.

Note: This is NOT a vehicle event library. The name is misleading, I probably should have though of a better name, but we are going to roll with it.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<Config xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <MinTime>1200</MinTime>
  <MaxTime>2400</MaxTime>
  <Color>Magenta</Color>
  <DespawnVehicles>true</DespawnVehicles>
  <DespawnLockedVehicles>false</DespawnLockedVehicles>
  <DespawnTime>600</DespawnTime>
  <Vehicles>
    <Vehicle>
      <Id>133</Id>
      <Name>Annushka</Name>
    </Vehicle>
    <Vehicle>
      <Id>134</Id>
      <Name>Orca</Name>
    </Vehicle>
    <Vehicle>
      <Id>135</Id>
      <Name>Hind</Name>
    </Vehicle>
    <Vehicle>
      <Id>137</Id>
      <Name>Russian Tank</Name>
    </Vehicle>
    <Vehicle>
      <Id>119</Id>
      <Name>Vodnik</Name>
    </Vehicle>
    <Vehicle>
      <Id>107</Id>
      <Name>Hummingbird</Name>
    </Vehicle>
    <Vehicle>
      <Id>95</Id>
      <Name>Skycrane</Name>
    </Vehicle>
    <Vehicle>
      <Id>93</Id>
      <Name>Forest Huey</Name>
    </Vehicle>
  </Vehicles>
  <Exceptions>
    <string>Zavod</string>
    <string>Camp Samara</string>
    <string>Kivgrad Harbor</string>
    <string>Liberator</string>
  </Exceptions>
</Config>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="event" Value="Bandits have abandoned a {0} at {1}! Go find it and it may be yours!" />
</Translations>

Commands and permissions


This plugin doesn't have any commands.

Git changelog


b75cd7ac178a121 2016-12-03 18:32:20

Updating Files

    46d1c96395cdb49 2016-12-02 21:55:35

    Add files via upload

      73da7256e120256 2016-11-10 20:03:10

      Updated to fix issues

        55d7a86706f1ef2 2016-11-09 22:17:11

        Add files via upload

          b13ec3a6a007f98 2016-10-09 18:02:10

          Add files via upload

            9265945d080a762 2016-10-09 17:59:04

            Revert "Added Lib"

            • This reverts commit 17d44ba50c843c3279cc8eb23affcfea7a211680.

            17d44ba50c843c3 2016-10-09 17:25:13

            Added Lib

              Download

              Build #15
              By downloading this file, you agree to our license terms.

              Repository

              github.com

              License

              MIT

              Author

              CryTheSly