package NewSelf Delete {function ServerCmdSelf Delete(%client){//add your if hereparent::ServerCmdSelf Delete(%client); //Leave this in here, it continues with the old function}};activatepackage(newSelf Delete);