Blockland Forums > Modification Help
Scripting
<< < (3/6) > >>
BlockStar:

--- Quote from: MegaScientifical on November 16, 2010, 05:46:43 PM ---Ya, no.

--- End quote ---
fixed
BlockStar:

--- Quote from: MegaScientifical on November 16, 2010, 05:49:54 PM ---What?

--- End quote ---
if they are disabled then nobody can use their personal lights same with enabled but they can
Butler:

--- Quote from: MegaScientifical on November 16, 2010, 05:30:36 PM ---...

--- End quote ---

Is true!!

Start a sev, the type /light, it turns on your light.
phflack:
also, for the emotes, it's things like /alarm, /confusion or /confused, /love, /hate, /hug, and i think i might be forgetting one, /sit too if you want (to disable the sit and crouch glitch?)


--- Quote from: Butler on November 16, 2010, 07:07:41 PM ---Is true!!

Start a sev, the type /light, it turns on your light.

--- End quote ---
he's trying to disable it, i think he knows of that
MegaScientifical:

--- Code: ---package adminOnlyLight {
function serverCmdLight(%client) {
if(!$lightsOFF)
Parent::serverCmdLight(%client);
}
};
activatePackage(adminOnlyLight);

function serverCmdToggleLight(%client) {
if(%client.isAdmin) {
switch($lightsOFF) {
case 1:
$lightsOFF = 0;
messageAll(%client, '', "\c3Player Lights are now\c6ON\c3.");
default:
for(%c = 0; %c < ClientGroup.getCount(); %c++)
if(isObject((%client = ClientGroup.getObject(%c)).player.light))
serverCmdLight(%client);
$lightsOFF = 1;
messageAll(%client, '', "\c3Player Lights are now\c6OFF\c3.");
}
}
else
messageClient(%client, '', "\c3Admin Only.");
}
--- End code ---
Navigation
Message Index
Next page
Previous page

Go to full version