Blockland Forums > Modification Help

Blocking Item Spawning

Pages: << < (6/6)

Iban:


--- Quote from: Reinforcements on April 10, 2011, 06:35:57 PM ---I hate restricted events on city RPs.

--- End quote ---
I hate dumbasses spawning tank projectiles.

Giovan:


--- Quote from: otto-san on April 10, 2011, 05:38:22 PM ---again, you need to change the parent.

--- End quote ---

How, exactly?
I'm sorry, I'm mostly new to this.


--- Quote from: Iban on April 10, 2011, 06:41:53 PM ---I hate dumbasses spawning tank projectiles.

--- End quote ---
So. Do. I.

otto-san:

package RP_Noitems {
  
  function fxDtsBrick::setItem(%this, %itemdata, %client)
   {
      if(%client.isAdmin || %client.isSuperAdmin)
         parent::setItem(%this, %itemdata, %client);
                 else
        messageClient(%client, '', "\c6You cannot just spawn an item.");
   }
  
};

activatePackage(RP_Noitems);
you simply needed to change that

Giovan:

oyeah

Pages: << < (6/6)

Go to full version