There. As you obviously have no real clue of how to code. I fixed up Marble Man's junky code and formatting. I also added /VIP Add, /VIP Remove, /VIP_Add, and /VIP_Remove.
registerInputEvent("fxDtsBrick", "onActivateVIP", "Self fxDtsBrick" TAB "Player Player" TAB "Client GameConnection" TAB "Minigame Minigame");
package VIP
{
function serverCmdMessageSent(%client, %msg)
{
if($canVIP[%client.BL_ID])
{
%client.clanSuffix = %client.clanSuffix @ "\c6[\c4VIP\c6]";
}
parent::serverCmdMessageSent(%client, %msg);
}
function fxDTSBrick::onActivate(%obj, %player, %client, %pos, %vec)
{
parent::onActivate(%obj, %player, %client, %pos, %vec);
if($canVIP[%client.BL_ID])
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %player;
$InputTarget_["Client"] = %client;
if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
}
else
{
if(getMiniGameFromObject(%brick) == getMiniGameFromObject(%client))
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%brick);
}
else
{
$InputTarget_["MiniGame"] = 0;
}
}
%obj.processInputEvent("onActivateVIP", %client);
}
}
};
activatepackage(VIP);
function serverCmdVIPAdd(%client, %target)
{
if(!%client.isSuperAdmin)
{
return;
}
if(!isInt(%target))
{
if(!isObject(%targetClient = findClientByName(%target)))
{
messageClient(%client, '', "\c5Could not find \c6\"" @ %target @ "\"\c5.");
return;
}
if($canVIP[%targetClient.BL_ID])
{
messageClient(%client, '', "\c6\"" @ %targetClient.name @ "\" \c5(\c6" @ %targetClient.BL_ID @ "\c5) is already on the \c2VIP List");
return;
}
$canVIP[%targetClient.BL_ID] = true;
messageClient(%client, '', "\c5Added \c6\"" @ %targetClient.name @ "\" \c5(\c6" @ %targetClient.BL_ID @ "\c5) to the \c2VIP List");
export("$canVIP*", "config/VIP.cs");
}
else
{
if($canVIP[%target])
{
messageClient(%client, '', "\c6\"" @ %target @ "\"\c5 is already on the \c2VIP List");
return;
}
$canVIP[%target] = 1;
messageClient(%client, '', "\c5Added \c6\"" @ %target @ "\"\c5 to the \c2VIP List");
export("$canVIP*", "config/VIP.cs");
}
}
function serverCmdVIPRemove(%client, %target)
{
if(!%client.isSuperAdmin)
{
return;
}
if(!isInt(%target))
{
if(!isObject(%targetClient = findClientByName(%target)))
{
messageClient(%client, '', "\c5Could not find \c6\"" @ %target @ "\"\c5 to the \c2VIP List");
return;
}
if(!$canVIP[%targetClient.BL_ID])
{
messageClient(%client, '', "\c6\"" @ %targetClient.name @ "\" \c5(\c6" @ %targetClient.BL_ID @ "\c5) is not on the \c2VIP List");
return;
}
$canVIP[%targetClient.BL_ID] = false;
messageClient(%client, '', "\c5Removed \c6\"" @ %targetClient.name @ "\" \c5(\c6" @ %targetClient.BL_ID @ "\c5) from the \c2VIP List");
export("$canVIP*","config/VIP.cs");
}
else
{
if(!$canVIP[%target])
{
messageClient(%client, '', "\c6\"" @ %target @ "\"\c5 is not on the \c2VIP List");
return;
}
$canVIP[%target] = 0;
messageClient(%client, '', "\c5Removed \c6\"" @ %target @ "\"\c5 to the \c2VIP List");
export("$canVIP*", "config/VIP.cs");
}
}
function serverCmdVIP(%client, %option, %target)
{
if(%option $= "Add")
{
serverCmdVIPAdd(%client, %target);
}
else if(%option $= "Remove")
{
serverCmdVIPRemove(%client, %target);
}
}
function serverCmdVIP_Add(%client, %target)
{
serverCmdVIPAdd(%client, %target);
}
function serverCmdVIP_Remove(%client, %target)
{
serverCmdVIP_Remove(%client, %target);
}
function isInt(%num)
{
return %num $= %num * 1;
}
if(isFile("config/VIP.cs"))
{
exec("config/VIP.cs");
}