Let me try, this will be a "/" command
function servercmdgiveAllBricksName(%client,%name)
{
for(%i=0;%i<missionCleanup.getCount();%i++) //Loop through mission cleanup
{
%this = missionCleanup.getObject(%i) //%this is object number %i
if(%this.getType() $="FxDTSbrick") //If %this is a brick
{
%owner = MissionCleanup.getGroup(%i).getname();
if(%owner $= %client.getname())
{
%this.setName("_" @ %name); //Give it the name (brick names start with an underscore)
}
}
}
}
And I just edited Amades a little, why make it a console thing? Why not just make it a script?