function messagemini( %mini, %message )
{
for (%i = 0; %i < %mini.numMembers; %i++)
{
messageclient(%mini.member[%i] , '',%message);
}
}
package dropstop
{
function serverCmdDropTool( %client, %slot )
{
if( %client.minigame == 1 ) //If they're in a minigame.
{
if( %client.minigame.dropstop ) //if dropstop is on, don't do anything.
return;
}
Parent::ServerCmdDropWeapon( %client, %slot ); //if it isn't on, or they're not in a minigame, do the normal grove.
}
};
activatePackage(dropstop);
function ServerCmdDropStopTog( %client )
{
if( %client.minigame== 0 || %client.minigame== -1 || %client != %client.minigame.owner) //If they're not the owner of a minigame, yell at them.
{
messageclient(%client, '',"\c2You must be the owner of a minigame to use this command");
return;
}
if( %client.minigame.dropstop ) //If dropstop is on, turn it of and tell them so.
{
%client.minigame.dropstop = 0;
messagemini(%client.minigame,"\c1Drop weapon prevention is now \c0off\c1.");
}
else //If dropstop is off, turn it on and tell them so.
{
%client.minigame.dropstop = 1;
messagemini(%client.minigame,"\c1Drop weapon prevention is now \c2on\c1.");
}
}