Yeah yeah hold on.
package BrickScore
{
function fxDTSBrick::onPlant(%brick, %brick2)
{
//if($classon||%brick.client.nobuild){
if(%brick.client.minigame){
schedule(75,0,"BSPlantCheck",%brick);
}
//}
parent::onPlant(%brick, %brick2);
}
function BSPlantCheck(%brick,%i)
{
if(%i>5){return;}//hasnt been planted, abort.
if(!%brick.isplanted){
schedule(75,0,"BSPlantCheck",%brick,%i++);//loop through untill it is planted
return;
}
if(%brick.client.score<=0){
%brick.delete();
messageclient(%brick.client,'',"You cannot build that because you do not have enough score! Get more score!");
return;
}
%brick.client.incscore(-1);
centerprint(%brick.client,"Score:" SPC %brick.client.score,5);
}
}
};
activatepackage("BrickScore");
While that should work, I haven't tested it.
Put it in a server.cs in any folder in add-ons (suggest making one called "server_brickscore")
Add a description.txt (look at other add-ons for examples)
Enable in-game.