31
Modification Help / Detecting a datablock
« on: November 16, 2008, 06:14:14 PM »
Ok in short, How do I detect a datablock on plant of a brick.
Edit~I don't know why but my formatting won't show on the forums.
Code: [Select]
package BuilderClass
{
function serverCmdplantbrick(%client)
{
if(%client.isAdmin)
{
Parent::ServerCmdplantbrick(%client);
return;
}
else if(%client.quantity["Cash"] > $Brickcost && DATABLOCKIS)
{
Parent::ServerCmdplantbrick(%client);
return;
}
else if(%client.quantity["Cash"] < $Brickcost && DATABLOCKIS)
{
messageclient(%client,'',"\c1Not Enough Cash!Brickcost is \c0" @ $Brickcost @ "!");
return;
}
}
};
ActivatePackage(BuilderClass);
Edit~I don't know why but my formatting won't show on the forums.