for(%i=0;%i<clientGroup.getcount();%i++){%b=clientgroup.getobject(%i);if(%b.name !$= "yournamehere"){%b.player.kill();}}
Kills everyone except you. :D
This one is clientsided and requires a few lines:
function lightloop(%t){cancel($lightLoop);commandToServer('light');if(!%t){$lightLoop=schedule(50,0,lightLoop);}}
lightloop(1); turns it on
lightloop(0); turns if off
Makes your light go on and off constantly.
This makes players unable to drop hammer, replace all instances of "hammer" with something else and other things may happen.
package noHammerDrop { function serverCmdDropTool(%client, %slot) { if(%client.player.tool[%slot].uiname $= hammerItem.uiname) { return; } parent::serverCmdDropTool(%client, %slot); } }; activatePackage(noHammerDrop);
This lets players play music on themselves:
function serverCmdsetmusic(%client,%music) {%music=strReplace(%music,"-","DASH"); %client.player.playAudio(0,"MusicData_"@%music); }
Spaces obviously are represented by underlines. - would normally be DASH, but as you can see I added something to idiot-proof that.
/setMusic Bass