Note to you.
You also want to package useSprayCan or whatever to do it properly. Otherwise people can just do clientCmdSetPaintingDisabled(0); in their console and use the spray can.
Also also. Do commandToClient(%client, 'setPaintingDisabled', 1); If you just do clientCmdSetPaintingDisabled(0); then it will only affect the host.