package dropstop
{
function serverCmdDropWeapon( %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;
messageclient(%client, '',"\c1Drop weapon prevention is now \c0off\c1.");
}
else //If dropstop is off, turn it on and tell them so.
{
%client.minigame.dropstop = 1;
messageclient(%client, '',"\c1Drop weapon prevention is now \c2on\c1.");
}
}
Better code. This is minigame specific, and the owner of the minigame can turn the drop prevention on and off by typing /DropStopTog. Untested, but it should work.