Author Topic: Restrict Players From Spawning Items  (Read 4977 times)

by the way guys i still need this addon

You can restrict the WRENCH so they don't spawn any items.
nononono
NO
People need wrenches for other things like events

Helping this situation does not involve acting equally stupidly hostile.


He needs to prevent people from spawning weapons on bricks, and exactly that. Not from picking them up, or using them, but precisely spawning them on the brick. Offering anything but the prevention of spawning on the brick is unhelpful.

His attitude toward the repeated unhelpful add-on is wildly uncalled for, but as a fellow person inflicted by uncalled for rage escalating uncontrollably for no reason, I can understand.


12:12 PM - Teneksi: Is there a way to stop non-admins from assigning weapons to bricks?
12:12 PM - Port: well
12:12 PM - Port: serverCmdSetWrenchData is used for applying things to a brick
12:13 PM - Port: (items, emitters, colliding, etc)
12:13 PM - Port: somewhere in there is the item
12:13 PM - Port: if you can figure out the format of the data
12:13 PM - Port: then you can just ignore it if client is not admin
It's serverCmdSetWrenchData(%client, %string). I've broken down %string below.

%brickName = restWords(getField(%string, 0));

%lightData = restWords(getField(%string, 1));

%emitterData = restWords(getField(%string, 2));
%emitterDir = restWords(getField(%string, 3));

%itemData = restWords(getField(%string, 4));
%itemPos = restWords(getField(%string, 5));
%itemDir = restWords(getField(%string, 6));
%itemRespawnTime = restWords(getField(%string, 7));

%raycasting = restWords(getField(%string, 8));
%collision = restWords(getField(%string, 9));
%rendering = restWords(getField(%string, 10));
« Last Edit: May 01, 2014, 03:51:00 PM by jes00 »

« Last Edit: April 28, 2014, 04:43:52 PM by Ducky duck »

More what I ment,

I will not make this addon for Cassord.
It's not like you could anyways

I will not make this addon for Cassord.
I don't care? Someone else is bound to make it anyways.
wan'ts
lol

Jesus christ, everyone in this thread is such a douche. "hurr i can make it for you............but I WONT!!!"

I'll see what I can do.
Do you want it to be Admin, SA, Host or RTB prefs for everything?

all my dreams
port'll release it I suppose
« Last Edit: April 28, 2014, 09:19:49 AM by Crystalwarrior »

package MyPackage
{
  function serverCmdSetWrenchData(%client, %string)
  {
    if (!%client.isAdmin && !%client.isSuperAdmin)
    {
      %count = getFieldCount(%string);

      for (%i = 0; %i < %count; %i++)
      {
        %field = getField(%string, %i);

        if (firstWord(%field) $= "IDB")
          %string = setField(%string, %i, "IDB 0");
      }
    }

    Parent::serverCmdSetWrenchData(%client, %string);
  }
};

activatePackage("MyPackage");

Do you want it to be Admin, SA, Host or RTB prefs for everything?
RTB prefs please, if you could, add a pref to choose what rank is able to spawn items, e: (user, admin, superadmin)
Also, would it be possible to do this with vehicles?
« Last Edit: April 28, 2014, 11:48:58 AM by Cassord² »

RTB prefs please, if you could, add a pref to choose what rank is able to spawn items, e: (user, admin, superadmin)
Also, would it be possible to do this with vehicles?

...vehicles?

I think there is one,



(I'm not trying to start a flame war)

...vehicles?

I think there is one,



(I'm not trying to start a flame war)
No I don't think there is, I probably would've known about it.
Someone should make that too.

http://steamcommunity.com/id/LordTony/

4:52 PM - Lord Tony: Lord Tony: can you do me a favor
Lord Tony: tell cassord I have the add on he is looking for
Lord Tony: http://forum.blockland.us/index.php?topic=256625.0
Lord Tony: it can also restrict vehicles, brick properties, emitters, etc

http://steamcommunity.com/id/LordTony/

4:52 PM - Lord Tony: Lord Tony: can you do me a favor
Lord Tony: tell cassord I have the add on he is looking for
Lord Tony: http://forum.blockland.us/index.php?topic=256625.0
Lord Tony: it can also restrict vehicles, brick properties, emitters, etc


Cool