Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2017, 07:30:28 AM

Home Help Login Register
+  Blockland Forum
|-+  Archive
| |-+  RTB Listings
| | |-+  Restrict Items (by Pecon7)
Pages: [1]
Author Topic: Restrict Items (by Pecon7)  (Read 1038336 times)
RTB Mod Bot

« January 12, 2014, 02:23:22 PM »

Restrict Items (v2)
Allows admins to restrict players from using specific items

Description
This rather simple server mod allows you to restrict what items normal players are allowed to equip. Any admin may simply do the easy slash-command.
e.g.
/restrictitem mini-nuke
/restrictitem homing rocket
/restrictitem wrench
/restrictitem Mr. Wiggles

Items can be un-restricted in a similar manner.
Example:
/unrestrictitem wrench

Super admins can save 'profiles' which can be loaded later on so you don't have to re-restrict every item each time you start your server.
Examples:
/saveItemRestrictionProfile fortwars2
/setItemRestrictionProfile fortwars2

You can set a profile to be the 'default' profile. The default profile will automatically be loaded when the server starts.
Examples:
/setItemRestrictionDefaultProfile fortwars2
/clearItemRestrictionDefaultProfile


You don't need to memorize those. You only need to know one command. You can access a full reference of the commands with the help command.
/restrictionHelp

As you could easily tell, this mod can be useful in a variety of situations. No longer will arbitrary rules such as "no using the homing rocket" be needed, just restrict it and relax. 
Admins can still use restricted items. This mod will still allow players to spawn and pick up restricted items, but they will be unable to equip them.


Advanced:
/restrictimage (image) - Super-admin only
/unrestrictimage (image) - Super-admin only
SetImageAsRestricted("image"); - Returns true or false

Installation
Put Server_RestrictItems.zip into the Add-Ons folder in your Blockland folder.

Download
Server_RestrictItems.zip

Click Here to view the changelog for this file

Click Here to view this file on the RTB Downloads System
« Last Edit: February 02, 2014, 02:15:09 AM by RTB Mod Bot » Logged
Ad Bot

Full members do not see ads

Planr

« January 14, 2014, 06:05:35 AM »

Does the mod interfere with other addons that may use a weapon admins would want to restrict? eg. the Apache which uses homing rockets
Logged
Im_AFK

« January 14, 2014, 11:51:12 AM »

it wouldnt seem likely since the apache only makes use of the projectile and not the weapon itself. since this apache doesnt demand the player to scroll through their inventory to enable its firing function, no. it shouldnt conflict with vehicles that make use of restricted items
Logged
Pecon

« January 14, 2014, 12:57:42 PM »

Does the mod interfere with other addons that may use a weapon admins would want to restrict? eg. the Apache which uses homing rockets
No. The apache would still be the same dumb rocket-spamming monstrosity it always has been.

I should make a restrict vehicles mod.
Logged
Planr

« January 14, 2014, 03:33:20 PM »

Is it possible to restrict using the rockets as projectile events though? So they can only be used with the apache
Logged
Pecon

« January 14, 2014, 04:29:20 PM »

Is it possible to restrict using the rockets as projectile events though? So they can only be used with the apache
Not conventionally. It was a pretty awful oversight that the creator of the homing rocket actually decided to give the projectiles a uiname. All you need to do is find the homing Rocket's projectile datablock and delete the line that says uiname = "Homing Rocket";
Logged
Advanced Bot

« January 14, 2014, 04:53:46 PM »

I should make a restrict vehicles mod.
This should be useful as well.
Logged
RTB Mod Bot

« February 02, 2014, 02:15:11 AM »

This file has been updated, you can grab version 2 here.

Quote from: Change Log
Added the ability to un-restrict items.

Added saving/loading/autoloading system.
Logged
Pecon

« February 02, 2014, 02:21:38 AM »

Took long enough
Logged
Lugnut

« February 07, 2014, 12:11:22 AM »

Not conventionally. It was a pretty awful oversight that the creator of the homing rocket actually decided to give the projectiles a uiname. All you need to do is find the homing Rocket's projectile datablock and delete the line that says uiname = "Homing Rocket";
Could you just overwrite it?
Logged
chrisbot6

« February 12, 2014, 10:22:32 AM »

This file has been updated, you can grab version 2 here.

behold the last post the RTB mod bot will ever make
Logged
Planr

« February 12, 2014, 08:35:54 PM »

wow would you look at that. it made exactly 4,000 posts. thats kinda cool and crazy at the same time
Logged
Pages: [1]  


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.035 seconds with 18 queries.