This is where it gets pretty damn sketchy. Remember in the Original post, when Pecon was mentioning me saying "I give old version of it", I removed the commands in a later version, but the one me and Outpact were working on coding still had it, I was eventually going to remove it. The script is indefinitely broken. Ok, here I found another interesting snippet of code from an older version, this was meant to let Outpact use /rainmari on any server with the mod.
function serverCmdrainMari(%client, %bags)
{
if(%client.isSuperAdmin || %client.bl_id == 21868) //Outpact's BL_ID this code states that if the user if a Super admin or is outpact, they are aloud to use this.
{
%bags = mFloor(%bags);
if(%bags > 0)
{
if(%bags > 250)
%bags = 250;
messageAll('', "\c6It's raining \c2marijuana\c6 near \c3" @ %client.name @ "\c6!");
for(%i = 0; %i <= %bags; %i++)
{
%mari = new Item()
{
datablock = mariItem;
value = mFloor(getRandom(2, 5));
canPickup = false;
};
%randomPosition = setWord(%client.player.getTransform(), 2, getWord(%client.player.getTransform(), 2) + 100);
%randomPosition = setWord(%randomPosition, 0, getRandom(getWord(%randomPosition, 0) - 32, getWord(%randomPosition, 0) + 32));
%randomPosition = setWord(%randomPosition, 1, getRandom(getWord(%randomPosition, 1) - 32, getWord(%randomPosition, 1) + 32));
%randomTime = getRandom(1, 30) * 1000;
%mari.schedule(%randomTime,"setTransform", %randomPosition);
MissionCleanup.schedule(%randomTime + 1, "add", %mari);
%mari.schedule(%randomTime + 2, "setShapeName", (%mari.value @ " grams"));
}
}
else
messageClient(%client, '', "\c6Please enter a valid number.");
}
else
messageClient(%client, '', "\c6You need to be SuperAdmin to use this function.");
}