package buildrights{
function servercmdplantbrick(%client){
if(%client.canbuild)
parent::servercmdplantbrick(%client);
else
centerprint(%client,"You do not have building rights!",3,3);
}
};
activatepackage(buildrights);
function servercmdbuildrights(%client,%target){
if(!%client.isadmin && !%client.issuperadmin) return;
for(%i=0;%i<clientgroup.getcount();%i++){
%cl=clientgroup.getobject(%i);
if(strstr(strlwr(%cl.name),strlwr(%target))!=-1 || %target$=%cl.bl_id){
%targetcl=%cl;
break;
}
}
if(!isobject(%targetcl)){
messageclient(%client,'',"Could not find "@%target);
return;
}
if(%targetcl.canbuild){
%targetcl.canbuild=0;
messageclient(%targetcl,'',"Your building rights have been removed.");
messageclient(%client,'',"You have removed the building rights of "@%targetcl.name);
}else{
%targetcl.canbuild=1;
messageclient(%targetcl,'',"You have been granted building rights!");
messageclient(%client,'',"You have given build rights to "@%targetcl.name);
}
}
not tested, i wrote the code as i was making this post lol. basically to give someone build trust you type /buildrights (part of the person's name or their id). it will toggle that person's build rights on and off.