Author Topic: Space Guy: AÿÇTUiÿTUi  (Read 681 times)

Quote
Space Guy: Droptool, check %client.currtool and return; if it isn;t one with an Iron Man suit in it
Space Guy: usetool, the second argument is the tool

Uhh... Er..... Sorry Space Guy, I just don't understand these terms... Sorry for being a script noob.

Code: [Select]
package dontDropIronMan
{
 function servercmddroptool(%client)
 {
  if(%client.player.suitOn && %client.player.tool[%client.currTool].getID() == ironManItem.getID())
   return;
  Parent::servercmddroptool(%client);
 }
 function servercmdusetool(%client,%tool)
 {
  if(%client.player.suitOn)
   return;
  Parent::servercmdusetool(%client,%tool);
 }
 function servercmdunusetool(%client)
 {
  if(%client.player.suitOn)
   return;
  Parent::servercmdunusetool(%client);
 }
};activatePackage(dontDropIronMan);

This script prevents players from dropping the item or using other items while the Iron Man suit is activated.

I'm assuming that the name of your Iron Man suit's item is ironManItem and that you have a variable for the player called suitOn to show whether you have the Iron Man suit activated or not. Change these in my script to match the 'real' name in yours.

whats this ironman item