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.