Resource icon

Approved No Wasteland 1.3.3

No permission to download

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
86
18
California
CorrosionX submitted a new resource:

No Wasteland - Prevents players from building in wasteland

Description:
Prevents players from building in wasteland which ultimately affects server performance. Default Coordinates are: X < 3000 and Z > 1300

Features:
Removes any structure placed automatically.

Installation:
-Place into Fougerite folder
-Reload the server
-Open Settings.ini with a text editor
-Edit what you like
-Save the file
-Reload

My first plugin. I got the idea from an Oxide's plugin called "No Wasteland" (Author: Rusty Meatball) and decided to covert it...

Read more about this resource...
 
  • Funny
Reactions: Yones636
CorrosionX submitted a new resource:

No Wasteland - Prevents players from building in wasteland



Read more about this resource...
Approved, but:

If you are defining variables you might want to use them. Here is correct usage:

JavaScript:
function On_EntityDeployed(Player, Entity){
    var CX = Entity.X;
    //var CY = (Entity.Y); <- This line is not required
    var CZ = Entity.Z;
    if(CX  < 3000 || CZ  > 1300) {
        if(Player != null && Entity != null){ // Its not Player.Entity, simply Entity
            Entity.Destroy();
        }
    }
}
 
if (Entity != null) is true then "var CX = Entity.X;" will throw an error, and you are not using the Player, so you don't need to check for that as well.
 
TY, I didn't think I needed the Y and as I uploaded and posted it was like its not being used...why do i still have it there? Also the player check was for me trying to give the player back his destroyed item and to notify him. It wasn't worked after 4 different tries of messing with code, gave up and removed the non-working part. :(
 
  • Like
Reactions: Yones636
TY, I didn't think I needed the Y and as I uploaded and posted it was like its not being used...why do i still have it there? Also the player check was for me trying to give the player back his destroyed item and to notify him. It wasn't worked after 4 different tries of messing with code, gave up and removed the non-working part. :(
Thats a known bug. Currently at the entity destroy event the destroyer is the owner of the entity (always) not the actual destroyer.
 
Thats a known bug. Currently at the entity destroy event the destroyer is the owner of the entity (always) not the actual destroyer.
It's a deploy event. And as far as i know there is no entity destroy event in magma/fou/jint yet.
 
  • Like
Reactions: Yones636
TY, I didn't think I needed the Y and as I uploaded and posted it was like its not being used...why do i still have it there? Also the player check was for me trying to give the player back his destroyed item and to notify him. It wasn't worked after 4 different tries of messing with code, gave up and removed the non-working part. :(
to give a resource back, you need to translate the Entity.Name to its "inventory name"
 
It's in IronPython, I didn't wanted to make a fougerite pull request before it's tested, and now I'm lazy to do that. :D
 
  • Funny
  • Like
Reactions: Yones636 and Snake
CorrosionX updated No Wasteland with a new update entry:

Added popup notification warning, optional refund for placed items, and optional EvilMode >:D

Creates a config file if you don't have one (comes with one now) and by default refund = true (gives player back object they placed) and evilmode = false (spawn a wolf on the player's location, that will teach him not to place objects in Wastelands! ;) ). Now gives you a popup message that's hard to miss (always hated chat notifications/warnings, people tend to ignore or don't see them).


Known Issues:
1. Spits navmesh errors in console when evilmode is true and it spawns the wolf.
2. Wolf...

Read the rest of this update entry...
 
  • Like
Reactions: Yones636
CorrosionX updated No Wasteland with a new update entry:

Added config for distances, Now Announces player trying to build, and fixed minor bug

There was a bug with my other version, where the default ini file had evilmode=TRUE. I have fixed this issue and commented out the wolf spawning because of the spam issue. You may enable it if you like. It announces.

Evilmode now announces server wide the playername and location where the player is trying to build in wastelands, to allow people to find them easier ;)

Read the rest of this update entry...
 
  • Like
Reactions: Yones636
  • Like
Reactions: Yones636