Author Topic: Checking for admin before brickplace?  (Read 661 times)

Well basically i am creating a script and i was wondering what the syntax would be to make sure the person is an admin before placing that brick?

I know it would be something along the lines of

function serverCmdplacebrick(%client)
{
if(%client.isAdmin) etc etc
But how do i make it do that for ONLY certain blocks, like i have a custom fxDTSBRICKDATA and i wanted it to only be placed by admins, Is that doable?

Try this:

Code: [Select]
if(%client.player.tempBrick.dataBlock $= YourBrickData && !%client.isAdmin && !%client.isSuperAdmin)
     return;

Thanks, works perfectly!  :cookie: