Author Topic: Toggle Lights  (Read 562 times)

Edited version of the ToggleSelf Delete.
Code: [Select]
$Lightflag=1;
function serverCmdToggleLights(%client)
{
if(!%client.isAdmin || !%client.isSuperAdmin)
{
messageClient(%Client,'','\c6You must be an \c0Admin or higher\c6 to toggle Lights.');
return;
}

else

{
if($Lightflag==0)
{
$Self Deleteflag=1;
messageAll('',"\c6Lights are now \c2ON\c6.");
return;
}

else if($Lightflag==1)

{
$Lightflag=0;
messageAll('',"\c6Lights are now \c0OFF\c6.");
return;
}
    }
}

package LightOverwrite

{
function servercmdLight(%client)
{
if($LightFlag==0)
{
messageClient(%Client,'',"\c6You have no light.");
return;
}

else if($LightFlag==1)
{
[b] %client.player.kill();[/b]
}
}
};

activatePackage(LightOverwrite);
What would I replace the bold with?

 Parent::servercmdlight(%client); ?